Answer the question
In order to leave comments, you need to log in
What is the correct way to use ssh-agent?
In general, I'm trying to deal with ssh-agent. There are for example 7 keys for different servers.
I used to bind via .ssh/config like this:
host bind-hostname
HostName 100.100.100.1
User username
IdentityFile ~/.ssh/keyname
Answer the question
In order to leave comments, you need to log in
What's stopping you from writing
host bind-hostname 100.100.100.1
Hostname 100.100.100.1
User username
IdentityFile ~/.ssh/keyname
Why turn to ssh [email protected]100.1
when you can turn to ?
Then there are no problems with the keys if you use the same key for each bind-hostname user. And if the keys of different users of the machine are unique, then you can list them in the same config or, if there are more than 6 of them, name the keys according to a specific system using the host name and user, and set the key name in the config using % h and % r. ssh [email protected]bind-hostname
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question