|
Size: 1445
Comment:
|
Size: 1459
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 50: | Line 50: |
| ListenStream=22 | |
| Line 55: | Line 54: |
| sshd -t service ssh restart |
Contents
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
1 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
Restart service with service ssh restart
1 sudo systemctl edit ssh.socket
[Socket] ListenStream= ListenStream=2222
SSHFS
Ability to mount a user filesystem with FUSE on a remote SSH folder
