From Fedora Project Wiki

No edit summary
(service => systemctl)
 
Line 7: Line 7:
# On the remote host {{command|<remote_host_ip>}}:  
# On the remote host {{command|<remote_host_ip>}}:  
## Log-in as root.
## Log-in as root.
## Start SSHD service: {{command | service sshd start}}
## Start SSHD service: {{command | systemctl start sshd }}
## Add a user <testuser>: {{command| useradd <testuser> }}
## Add a user <testuser>: {{command| useradd <testuser> }}
## Set a password for <testuser>: {{command| passwd <testuser>}}
## Set a password for <testuser>: {{command| passwd <testuser>}}

Latest revision as of 08:13, 22 July 2016

Description

This test case tests OpenSSH basic functionalities (ssh login, scp files).

Setup

  1. Ensure that Package-x-generic-16.pngopenssh, Package-x-generic-16.pngopenssh-clients, Package-x-generic-16.pngopenssh-server packages are installed.
  2. Ensure that SSH port (22/tcp) is open in the firewall.

How to test

  1. On the remote host <remote_host_ip>:
    1. Log-in as root.
    2. Start SSHD service: systemctl start sshd
    3. Add a user <testuser>: useradd <testuser>
    4. Set a password for <testuser>: passwd <testuser>
  2. On your local host:
    1. Create 10M test file:
      dd if=/dev/urandom  of=/tmp/testfile bs=1M count=10
    2. Copy the file over SSH: scp /tmp/testfile <testuser>@<remote_host_ip>:/tmp/
    3. Log-in over SSH with <testuser>: ssh <testuser>@<remote_host_ip>
    4. Check for the test file: file /tmp/testfile
    5. Check for the size of the test file: du /tmp/testfile

Expected Results

  1. All operations should work.
  2. The size of test file on remote machine should match local one.
  3. Double check test file integrity with md5sum