Ssh

Aus robopagex.com
Zur Navigation springen Zur Suche springen

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