300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > SSH config 配置

SSH config 配置

时间:2024-07-15 20:42:55

相关推荐

SSH config 配置

linux

SSH config 配置

直接看我的配置文件(vim ~/.ssh/config)

Host wotokenHostName 192.168.2.18IdentityFile ~/.ssh/id_rsaUser rootPort 22IdentitiesOnly yesHost bobaotestHostName 192.168.2.1IdentityFile ~/.ssh/id_rsaUser rootPort 22IdentitiesOnly yes

新建配置文件

cd ~/.sshtouch config

然后把你的服务器的一些配置按照上面给出的格式配置一下即可vim ~/.ssh/config

Host wotokenHostName 192.168.2.18IdentityFile ~/.ssh/id_rsaUser rootPort 22IdentitiesOnly yesHost bobaotestHostName 192.168.2.1IdentityFile ~/.ssh/id_rsaUser rootPort 22IdentitiesOnly yes

登陆(输入以下命令)

ssh wotokenssh bobaotest

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。