remarks
Closed this issue · 1 comments
xiaoxiaoranxxx commented
If there are dozens of shells to manage and it's easy to get confused,
I want a feature that can define remarks
In the configuration of.ssh/config
[root@VM-24-10-centos ~]# cat ~/.ssh/config
Host www
HostName www.xxxx.com
Port 22
User root
IdentityFile ~/.ssh/id_rsa.pub
IdentitiesOnly yes
Host bbs
HostName 115.28.45.104
User anotheruser
PubkeyAuthentication no
This way I can log in directly to
ssh www
ssh bbs
I want to always combine these to create a function, which can directly add names🫡🫡🫡
NHAS commented
This already exists. You can name clients to whatever you want in the authorized_keys
file comment.
This will add the comment as a name/id that you can use.