3. 启动服务: # systemctl start sshd.service # systemctl status sshd.service ● sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2016-05-20 12:38:44 CST; 40min ago
4. 观察服务是否启动: # netstat -lpnut Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 1484/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 22959/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2200/cupsd tcp6 0 0 :::22 :::* LISTEN 22959/sshd tcp6 0 0 ::1:631 :::* LISTEN 2200/cupsd
5. 使用A主机连接B主机: $ ssh maria@192.168.1.107 The authenticity of host '192.168.1.107 (192.168.1.107)' can't be established. ECDSA key fingerprint is SHA256:08Rq2SKHf2CvZBn6sjLzSeJczoSlDXbhaac46Id59QQ. ECDSA key fingerprint is MD5:c2:cd:49:7e:56:43:15:30:b8:fa:69:a5:9b:ad:bd:38. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.107' (ECDSA) to the list of known hosts. maria@192.168.1.107's password: Last login: Fri May 20 05:26:54 2016 [maria@localhost ~]$
5. 使用A主机连接B主机: $ ftp 192.168.1.107 Connected to 192.168.1.107 (192.168.1.107). 220 (vsFTPd 3.0.2) Name (192.168.1.107:maria): maria 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp>
4. 使用A主机登陆B主机: $ telnet 192.168.1.107 Trying 192.168.1.107... Connected to 192.168.1.107. Escape character is '^]'. Fedora release 22 (Twenty Two) Kernel 4.0.4-301.fc22.x86_64 on an x86_64 (3) localhost login: maria Password: Last login: Fri May 20 13:22:31 from 192.168.1.104 [maria@localhost ~]$ ls Desktop Documents Downloads Music Pictures Public Templates Videos [maria@localhost ~]$
文章评论(0条评论)
登录后参与讨论