SSH server
- cd /etc/ssh/
- rm /etc/ssh/ssh_host*
- /etc/init.d/sshd restart
- netstat -tlnp | grep ssh
- adduser test
- passwd test
- ifconfig
- ssh 用戶連線程式(Chapter 11)
- Linux 用戶
- >ssh 127.0.0.1
- >ssh localhost
- Windows 用戶
-
pietty
- download:
http://ntu.csie.org/~piaip/pietty/download
- 不需密碼登入
- Client (ClientLinux)
- ssh-keygen [-t rsa|dsa]
- ssh-keygen
- ls -ld ~/.ssh; ls -l ~/.ssh
- scp ~/.ssh/id_rsa.pub jdwang@192.168.100.254:~
- Server(CentOS)
- ls -ld .ssh
-
(如果沒有.ssh目錄=>mkdir
.ssh; chmod 700
.ssh)
- ls -l *pub
- cat
id_rsa.pub >> .ssh/authorized_keys
- chmod 644 .ssh/authorized_keys
- ls -l .ssh
- Test
- telnet IP