让远程机器执行命令的便捷方式
fedora20远程桌面

ssh别名登录

妙音 posted @ 2013年12月31日 17:11 in linux with tags ssh , 1900 阅读

经常使用ssh远程登录,每次都敲一长串字符。重复多了,有砸键盘的冲动。后来发现可用别名代替。

在~/.ssh/config 中加入以下内容

Host mt98   //快捷名
HostName 135.32.9.98 //主机名
User monitor  //用户名

然后可用ssh mt98登陆

运行时出现错误

ssh: Could not resolve hostname mt98: Name or service not known

config文件需要改成和known_hosts的所有者一致.

Avatar_small
soomro 说:
2024年1月16日 06:40

CapCut Mod Apk" refers to a modified version of the CapCut app, a popular video editing tool capcut pro Apk

Avatar_small
123 movies 说:
2024年1月18日 12:36

Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though.

Avatar_small
soap2day 说:
2024年1月26日 00:44

your post is about hardware floors it’s looking good but I recommend you use a service of pest control service or protect your floor from termites or other insects who damage your floor.

Avatar_small
crackstreams 说:
2024年4月27日 12:03

Great – I should definitely say I’m impressed with your blog. I had no trouble navigating through all tabs as well as related information. The site ended up being truly simple to access. Excellent job


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter