日本人 大佬有话说 :
【诡异事件】MacOS无法ssh hosts名称
1. 已经添加hosts记录 Mac 10.15.4
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
1.1.1.1 args
其中 1.1.1.1 为我的IP
2. 然后ssh不了
ssh root@args
之前都还可以,现在不知道是不是更新系统还是什么原因无法ssh了,有大佬知道如何解决吗,ssh之后一直不超时也不响应,
ssh root@IP地址可以
Nameless 大佬有话说 :
是不是我用错了?
我都放 ~/.ssh/config 里
比如:
Host bwg
HostName 123.123.123.123
Port 22
User root
然后 ssh bwg 就可以了
日本人 大佬有话说 :
Nameless 大佬有话说 : 2020-4-5 20:33
是不是我用错了?
我都放 ~/.ssh/config 里
比如:
我说的方法确实也可以,我的方法配合authorized_keys就行了,很方便
日本人 大佬有话说 :
Nameless 大佬有话说 : 2020-4-5 20:33
是不是我用错了?
我都放 ~/.ssh/config 里
比如:
我说的方法确实也可以,我的方法配合authorized_keys就行了,很方便
Nameless 大佬有话说 :
日本人 大佬有话说 : 2020-4-5 20:36
我说的方法确实也可以,我的方法配合authorized_keys就行了,很方便
config 里也可以, IdentityFile 参数后面加密钥也是直接登陆
fly930 大佬有话说 :
Host ali1
HostName 127.0.0.2
Port 22
User root
IdentityFile ~/.ssh/id_rsa