RELATED TAGS ssh, ssh-agent, ssh keys, multiple, putty
QUESTIONS
How can I setup multiply keys for SSH?
How can I connect with a specific key to a remote server with SSH?
What program do I need to connect to a server with a specific SSH key?
Which software do I need for a server connection with SSH keys?
LINKS Install ssh Create ssh key
If you don't have a folder named ".ssh" (a dot before the letters ssh)
in the user-directory on the local computer, create one.
On Windows:
C:\Users\{USER-NAME}\.ssh
On MacOS/Linux:
~\.ssh
Where the symbol "~" stands for the user directory.
If you don't have a file called "config" (without a dot and without a file extension)
create one.
Open the file "config" in a text editor like VSCode
Add an entry for your configuration:
# MY SSH ENTRY
Host {LOCAL-HOST-NAME}
HostName {REMOTE-HOST-ADRESS}
IdentitiesOnly yes
User {USER-NAME-ON-REMOTE}
IdentityFile {PATH-TO-PRIVATE-SSH-KEY}
Edit the entries in curly brackets:
{LOCAL-HOST-NAME}
This entry allows to rename or alias the adress you are using through SSH.
If you don't have a registrated name (and only an adress like 111.222.333.444 ) you can replace it with
a more convinient name like my dev-server
{REMOTE-HOST-ADRESS}
This entry is the adress to your server
{USER-NAME-ON-REMOTE}
This entry describes for which user-name the configuration should be applied.
{PATH-TO-PRIVATE-SSH-KEY}
This entry links to the ssh-key that should be used for the SSH connection.
An filled out example
# MY SSH ENTRY
Host My-Dev-Server
HostName 111.222.333.444
IdentitiesOnly yes
User Me-As-Dev
IdentityFile c:/my-ssh-keys/my-dev-server-key
APP | VERSION ssh 8+
RELATED TAGS ssh, ssh-agent, ssh keys, multiple, putty
QUESTIONS
How can I setup multiply keys for SSH?
How can I connect with a specific key to a remote server with SSH?
What program do I need to connect to a server with a specific SSH key?
Which software do I need for a server connection with SSH keys?