openssh
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
openssh [2016/04/17 16:09] – francesco | openssh [2022/07/21 14:50] (current) – francesco | ||
---|---|---|---|
Line 20: | Line 20: | ||
francesco@crunchbang: | francesco@crunchbang: | ||
- | Host HP | + | Host NUC |
- | hostname | + | hostname |
- | port | + | port |
- | user | + | user |
+ | |||
+ | Host AWS | ||
+ | hostname | ||
+ | port ** | ||
+ | user ec2-user | ||
+ | CertificateFile ~/ | ||
+ | IdentityFile | ||
# SSH config file, 'man ssh_config' | # SSH config file, 'man ssh_config' | ||
Line 33: | Line 41: | ||
< | < | ||
- | ssh-keygen -t dsa | + | ssh-keygen -t rsa |
</ | </ | ||
- | Anzi, dalla versione 7.0 (per esempio sullubuntu 16.04 che ho installato sull' | + | o, meglio ancora: |
< | < | ||
- | ssh-keygen -t rsa | + | ssh-keygen -t ed25519 |
</ | </ | ||
Line 47: | Line 55: | ||
< | < | ||
- | ssh-copy-id -i ~/.ssh/id_dsa.pub " | + | $ ssh-copy-id -i ~/.ssh/id_rsa.pub NUC |
</ | </ | ||
- | fatto! | + | ed ecco fatto! |
---- | ---- | ||
Line 71: | Line 79: | ||
scp -P33 file.tar.gz francesco@91.121.23.14:/ | scp -P33 file.tar.gz francesco@91.121.23.14:/ | ||
</ | </ | ||
+ | ---- | ||
+ | Per fare un tunnel con Syncthing | ||
+ | |||
+ | < | ||
+ | ssh -L 9090: | ||
+ | </ | ||
+ | ---- | ||
+ | Per fare un tunnel che mi permetta di scavalcare il firewall dell' | ||
+ | |||
+ | sul PC della biblioteca: | ||
+ | |||
+ | < | ||
+ | ssh -R 9091: | ||
+ | </ | ||
+ | |||
+ | (freebsd@164.90.160.203 è una VM DigitalOcean senza firewall attivato) | ||
+ | |||
+ | e poi, da qualsiasi altro PC collegato alla VM, fare: | ||
+ | |||
+ | < | ||
+ | ssh -p 9091 francesco@localhost | ||
+ | </ | ||
+ | |||
+ | e, una volta inserita la password, eccomi collegato al PC del lavoro! | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[sshfs]] |
openssh.1460902179.txt.gz · Last modified: 2016/04/17 16:09 by francesco