Ssh
Version vom 10. Juli 2021, 21:07 Uhr von Geist (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ === '''SSH, FUSE, SSHFS''' === ==== '''SSH STATUS''' ==== ''$ systemctl status ssh '' ''$ ps aux | grep sshd '' ''$ ss | grep -i ssh'' ''$ last -a | grep…“)
Inhaltsverzeichnis
SSH, FUSE, SSHFS
SSH STATUS
$ systemctl status ssh $ ps aux | grep sshd $ ss | grep -i ssh $ last -a | grep -i still $ who $ w $ netstat -tnpa | grep 'ESTABLISHED.*sshd' $ ps
$ service ssh status $ netstat -tanup | grep ssh
Create SSH Key
$ ssh-keygen -t ed25519 -b 4096
Copy SSH Key
$ ssh-copy-id -i KEY user@IP $ ssh-copy-id -i ~/.ssh/KEY user@IP
Login with SSH Key
$ ssh -i ~/.ssh/KEY user@IP -p 5001 $ ssh -i ~/.ssh/KEY user@IP -p 5002