|
Size: 1189
Comment:
|
Size: 1428
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 36: | Line 36: |
| {{{ | {{{#!highlight sh |
| Line 42: | Line 42: |
{{{#!highlight sh sudo systemctl edit ssh.socket }}} {{{ [Socket] ListenStream= ListenStream=2222 }}} {{{#!highlight sh systemctl daemon-reload systemctl restart ssh.socket ss -at -n | grep -i listen }}} |
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
