ssh-keygen -t rsa
chmod 755 ~/.ssh
scp ~/.ssh/id_rsa.pub 1.2.3.4:~/.ssh/authorized_keys
cat id_dsa.pub >> ~/.ssh/authorized_keys
chmod 644 authorized_keys
/usr/sbin/sshd -p 9922
ssh -l root -R 9922:127.0.0.1:9922 1.2.3.4 -p 9923 cat -
ssh-keygen -t rsa
chmod 755 ~/.ssh
scp ~/.ssh/id_rsa.pub 1.2.3.4:~/.ssh/authorized_keys
cat id_dsa.pub >> ~/.ssh/authorized_keys
chmod 644 authorized_keys
/usr/sbin/sshd -p 9922
ssh -l root -R 9922:127.0.0.1:9922 1.2.3.4 -p 9923 cat -
一. 二. 三. ! 作 者 : Yaopengfei(姚鵬飛) 博客地址 : http://www.cnblogs.com