ssh服务配置

ssh
检查是否安装
[root@localhost Server]# rpm -qa | grep ssh
openssh-4.3p2-41.el5
openssh-server-4.3p2-41.el5
openssh-clients-4.3p2-41.el5
openssh-askpass-4.3p2-41.el5


/*修改配置文件*/
rpm -ql openssh-server




sshd_config 服务器端


ssh_config 客户端


客户端
[root@localhost /]# ssh [email protected]
The authenticity of host '192.168.1.26 (192.168.1.26)' can't be established.
RSA key fingerprint is 8f:a2:29:b9:a4:70:5c:6c:1e:6b:05:67:8e:b6:1a:f9.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '192.168.1.26' (RSA) to the list of known hosts.
[email protected]'s password:
[root@localhost ~]#






/*下载文件*/
scp [email protected]:/目录名 本地目录
/*上传*/
scp 本

猜你喜欢

转载自retacn-yue.iteye.com/blog/1757652