|
Size: 1083
Comment:
|
Size: 1445
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 36: | Line 36: |
| {{{#!highlight sh nano /etc/ssh/sshd_config sshd -t service ssh restart ss -at -n | grep -i listen }}} {{{#!highlight sh sudo systemctl edit ssh.socket }}} {{{ [Socket] ListenStream= ListenStream=22 ListenStream=2222 }}} {{{#!highlight sh systemctl daemon-reload systemctl restart ssh.socket ss -at -n | grep -i listen }}} |
|
| Line 42: | Line 67: |
| sshfs user@host.example.org:/home/user remotesshfsfolder/ | sshfs user@host.example.org:/home/user remotesshfsfolder/ -p 1234 |
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=22 ListenStream=2222
SSHFS
Ability to mount a user filesystem with FUSE on a remote SSH folder
