m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ssh.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-12 15:50:59 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-12 15:50:59 +0100
commit277d6495d0b0333b1ce1aa8e77919982522f0a19 (patch)
tree9cf9726fce830fdb86d7618d8b609cad289c71c4 /ssh.md
parent7d327eba8f0a8a167424b960960c28fac2b065db (diff)
Add some stuff useful in scripting
Diffstat (limited to 'ssh.md')
-rw-r--r--ssh.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/ssh.md b/ssh.md
index f1d762b..1b5c9be 100644
--- a/ssh.md
+++ b/ssh.md
@@ -7,3 +7,11 @@
Change password for key:
ssh-keygen -p <keyname>
+
+## Setup login with public key
+
+ ssh-copy-id [user@]host
+
+## Execute commands and start shell
+
+ ssh -t host 'commands; bash'