bugged.be

"Think outside the [B0X]"
Icon

ssh shortcuts ‘bookmark’

How to create a bookmark/shortcut file for ssh.

1.Create

Create a “config” file in .ssl directory.

touch ~/.ssh/config

2.Content

Edit config file and add for each bookmark:

host vps
hostname 123.123.123.123
port 22
user admin
identityfile ~/.ssh/id_rsa

3.Usage

To connect and login into vps, run:

ssh vps

Ref.: https://linux.die.net/man/5/ssh_config

Category: Linux

Tagged: