在Linux系统中使用ssh命令可以连接服务器,如果出现command not found,是因为没有安装ssh,安装openssh-clients后就可以使用ssh命令来连接服务器了。
|
1
2
3
4
5
6
7
8
9
10
|
[root@w zdw]
# ssh ip
bash
:
ssh
:
command
not found
[root@w zdw]
# yum -y install openssh-clients #安装openssh-clients
[root@w zdw]
# ssh -p56789 zdw@ip #56789为ssh的端口
zdw@XXXX's password:
Last login: Fri May 6 17:51:08 2016 from 106.37.240.19
[root@w ~]
# cat ~/.ssh/known_hosts #密钥文件所存的位置
[root@w zdw]
# scp -P52113 /home/zdw/996.sh zdw@ip:/tmp #scp命令复制文件
zdw@ip's password:
996.sh 100% 0 0.0KB
/s
00:00
|
本文转自cix123 51CTO博客,原文链接:http://blog.51cto.com/zhaodongwei/1771474,如需转载请自行联系原作者