SSH

Generate local key to access remote host

On client:

On SSHserver:

Login from the client with ssh userx@remote.example.org should ask for not password. Useful to invoke commands remotely using ssh

Copy file to SSH server listening on different port

scp -P 2222 filex userx@sshserver.example.org:/home/userx

Add listening ports on Ubuntu

Edit file /etc/ssh/sshd_config to set port 22 and 1234

Port 22
Port 1234

Restart service with service ssh restart

SSH (last edited 2016-09-05 01:16:11 by localhost)