diff --git a/.bash_aliases b/.bash_aliases index 01c925d..bb82594 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -18,7 +18,6 @@ alias path='echo -e ${PATH//:/\\n}' - # shorts alias c='clear' alias q='exit' diff --git a/.ssh/config b/.ssh/config index e5e9a1f..fbfd7a6 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,4 +1,3 @@ - Host hosting HostName 5.187.5.178 Port 22 diff --git a/README.md b/README.md index af82b8d..4b7ea2b 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ -# BashConfig \ No newline at end of file +# BashConfig + +## SSH: + +Create ssh key on local device +```bash +ssh-keygen +``` +1. Save to ~/.ssh +2. Copy local "~/.ssh/id_rsa.pub" key to remote "~/.ssh/authorized_keys" + + +### ~/.ssh/config: +``` +Host host_name + HostName ip + Port 22 + User root + IdentityFile ~/.ssh/id_rsa + ``` + +```bash +ssh host_name +``` \ No newline at end of file