Skip to content

Instantly share code, notes, and snippets.

@deval-maker
Last active October 20, 2020 04:22
Show Gist options
  • Save deval-maker/01a75a16ac57d4897d39259bcdff776e to your computer and use it in GitHub Desktop.
Save deval-maker/01a75a16ac57d4897d39259bcdff776e to your computer and use it in GitHub Desktop.
How to setup remote ssh config
Run everything on host
$~/.ssh/config
Host <HostName>
HostName <HostIP>
User <username>
$ ssh-keygen
$ ssh-copy-id <HostName>
You will be prompted for password of the host.
$ ssh <HostName>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment