通常咱们使用ssh链接远程主机的时候,使用命令是:vim
ssh root[@ip](https://my.oschina.net/u/3749391) ssh –i [identity-file] -p [port] user@hostname
可是若是ip地址过多,其实根本记不住微信
而后咱们就能够用到config管理配置了ssh
vim ~/.ssh/config 增长如下配置 Host <alias> HostName <ip-address> Port <port> User <username> IdentityFile <path_to_your_private_key>
以后就能够使用如下命令直接登陆ide
ssh <alias>
如但愿了解更多,请关注微信公众号 .net