|
Size: 1428
Comment:
|
← Revision 14 as of 2026-05-03 15:52:01 ⇥
Size: 1508
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 47: | Line 47: |
| {{{ | {{{#!highlight sh |
| Line 49: | Line 49: |
| ListenStream= ListenStream=2222 |
ListenStream= ListenStream=0.0.0.0:2222 ListenStream=[::]:2222 |
| Line 54: | Line 55: |
| 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
SSHFS
Ability to mount a user filesystem with FUSE on a remote SSH folder
