From my .ssh/config
:
Host myshortname realname.example.com
HostName realname.example.com
IdentityFile ~/.ssh/realname_rsa # private key for realname
User remoteusername
Host myother realname2.example.org
HostName realname2.example.org
IdentityFile ~/.ssh/realname2_rsa # different private key for realname2
User remoteusername
Then you can use the following to connect:
ssh myshortname
ssh myother
And so on.
Related Contents:
- How do I verify/check/test/validate my SSH passphrase?
- TortoiseGit with openssh key not authenticating using ssh-agent
- Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”
- Multiple GitHub Accounts & SSH Config
- How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?
- ssh: The authenticity of host ‘hostname’ can’t be established
- Use PPK file in Mac Terminal to connect to remote connection over SSH [closed]
- Why doesn’t my SSH key work for connecting to github?
- How to use ssh agent forwarding with “vagrant ssh”?
- OpenShift rhc setup using multiple accounts
- “Add correct host key in known_hosts” / multiple ssh host keys per hostname?
- What’s the difference between authorized_keys and authorized_keys2?
- What significance does the user/host at the end of an SSH public key file hold?
- Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
- How do I validate an RSA SSH public key file (id_rsa.pub)?
- SSH Allow Password For One User, Rest Only Allow Public Keys [duplicate]
- Temporarily disable ssh public key authentication from client
- How to get all fingerprints for .ssh/authorized_keys(2) file
- What is the meaning of an equal sign = or == at the end of a SSH public key?
- Unable to ssh to GCE: “Permission denied (publickey)”
- Automating ssh-copy-id
- Is there a security risk to disclosing your SSH known_hosts file?
- ssh-copy-id specifying which key and without password
- Auto accept rsa key fingerprint from command line
- SSH aborts with Too many authentication failures
- A system for distributing SSH public keys
- how to connect to mongodb server via ssh tunnel
- openssh – Adding an ssh key from putty to authorized_keys
- how to SSH to EC2 without explicitly using the pem key?
- Putting RSA keys into azure key vault
- How to configure ssh client to use private keys automatically
- Publishing id_rsa.pub for easier setup of new environments?
- ssh command line specify server host key fingerprint
- Turn off strict checking of ssh keys
- SSH Public Key Format
- Load key “privkey.ppk” invalid format
- Are there any security benefits to deploying custom SSH DH groups to client-only systems?
- How to revoke an ssh certificate (not ssh identity file!)
- How to set public SSH key for root user on server?
- Choose identity from ssh-agent by file name
- SSH access gateway for many servers
- How to forward local keypair in a SSH session?
- How to access SSH keys for a Google Cloud Platform Compute Engine VM instance?
- Sign_and_send_pubkey: no mutual signature supported
- Ubuntu-ssh – – WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED [closed]
- Create a PEM from a PPK file [duplicate]
- SSH to AWS Instance without key pairs
- using ssh keys with scp and ssh
- Specifying password in .ssh/config file?
- Error connecting to agent: no such file or directory – adding key to ssh agent [closed]