From 78bb5f7f00f6f3d6faab8ce742b4877443acb1a8 Mon Sep 17 00:00:00 2001 From: Pendosv Date: Sun, 29 Aug 2021 03:42:11 +0300 Subject: [PATCH] README.md --- .bash_aliases | 1 - .ssh/config | 1 - README.md | 25 ++++++++++++++++++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) 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