mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-26 13:18:06 -08:00
Merge 12f7e23f8f into 10872e02d1
This commit is contained in:
@@ -153,6 +153,8 @@ ssh user@host # connects to host as user
|
|||||||
ssh -p <port> user@host # connects to host on specified port as user
|
ssh -p <port> user@host # connects to host on specified port as user
|
||||||
ssh-copy-id user@host # adds your ssh key to host for user to enable a keyed or passwordless login
|
ssh-copy-id user@host # adds your ssh key to host for user to enable a keyed or passwordless login
|
||||||
|
|
||||||
|
<Enter> + ~ + . # Exit an unresponsive SSH shell connection
|
||||||
|
|
||||||
whoami # returns your username
|
whoami # returns your username
|
||||||
su <user> # switch to a different user
|
su <user> # switch to a different user
|
||||||
su - # switch to root, likely needs to be sudo su -
|
su - # switch to root, likely needs to be sudo su -
|
||||||
|
|||||||
Reference in New Issue
Block a user