ssh安装使用

sudo yum –y install openssh-server

ssh-keygen –t dsa –P ‘’ –f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

chmod 600 ~/.ssh/authorized_keys

sudo chkconfig --level 345 sshd on

sudo chkconfig --level 345 iptables off

sudo service sshd restart

posted on 2011-04-25 18:53  张淼  阅读(232)  评论(0编辑  收藏  举报