Nachádzate sa tu

SSH

SSH server atkonfiguralasa

systemctl stop ssh
ls -lh /etc/ssh

kulcsok ujrageneralasa
dpkg-reconfigure openssh-server

OpenWRT
kulcs generalasa a kliens gepen
ssh-keygen -b 5120

Append public key to authorized_keys (on your OpenWrt device).
Add the public key of your computer to the authorized_keys file on OpenWrt
On your PC:
ssh root@192.168.1.1 "tee -a /etc/dropbear/authorized_keys" < /root/.ssh/id_rsa.pub
tehat a publikus kulcs megy a szerverre

Belepes egyszeruen a root alol
ssh 192.168.1.1

vagy mas user eseten atmasolni a /root/.ssh/id_rsa -t a /home/user/.ssh/id_rsa ala, jogokat beallitani
ssh root@192.168.1.1

Agent biztositja a kulcsot
vagy ssh-add — adds private key identities to the authentication agent
ssh-add -l
ssh-add /root/.ssh/id_rsa
1 orara
ssh-add -t 1h /root/.ssh/id_rsa

Osszes identity torlese az agentbol
ssh-add -D

SSH Tunneling
ssh -L5901:[VNC server address]:5900 root@[address ssh server] -p22