ssh、scp、ssh 免密码登陆

@bingoogolapple 2016-01-26 16:26:33发表于 bingoogolapple/bingoogolapple.github.io Linux工具软件开发环境

ssh 远程登录

ssh 命令。如果端口号是 22,则不需要指定

ssh -p 端口号 用户名@远程主机 

ssh -p 51122 centosone@localhost

在 .zshrc 中添加别名来简化命令

alias ubuntuone="ssh ubuntuone@localhost -p 61122"
alias ubuntutwo="ssh ubuntutwo@localhost -p 62222"
alias ubuntuthree="ssh ubuntuthree@localhost -p 63322"
alias centosone="ssh centosone@localhost -p 51122"
alias centostwo="ssh centostwo@localhost -p 52222"
alias centosthree="ssh centosthree@localhost -p 53322"