服务器安装SSH服务
安装SSH
yum install openssh-server
启动SSH
service sshd start
设置开机运行
chkconfig sshd on
客户端安装SSH工具
SSH是典型的客户端和服务端的交互模式
Windows有很多支持SSH连接工具
Xshell,Putty,secureCRT
Linux平台需要安装客户端软件
yum install openssh-clients
SSH客户端连接SSH服务
ssh 用户名@IP地址
ssh [email protected]
SSH config命令
config为了方便批量管理多个ssh
config存放在~/.ssh/config
config配置语法
host "haha"
HostName 192.168.1.111
User root
Port 22
ssh haha