User Tools

Site Tools


openssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
openssh [2018/03/04 14:39] francescoopenssh [2022/07/21 14:50] (current) francesco
Line 24: Line 24:
  port xx  port xx
  user fxx  user fxx
 +
 +Host    AWS
 +                hostname        35.181.*.*
 +                port            **
 +                user            ec2-user
 +                CertificateFile ~/.ssh/Primo.pem
 +                IdentityFile    ~/.ssh/Primo.pem
 +
  
 # SSH config file, 'man ssh_config' for more details. # SSH config file, 'man ssh_config' for more details.
Line 34: Line 42:
 <code> <code>
 ssh-keygen -t rsa ssh-keygen -t rsa
 +</code>
 +
 +o, meglio ancora:
 +
 +<code>
 +ssh-keygen -t ed25519
 </code> </code>
  
Line 65: Line 79:
 scp -P33 file.tar.gz francesco@91.121.23.14:/home/francesco/ scp -P33 file.tar.gz francesco@91.121.23.14:/home/francesco/
 </code> </code>
 +----
 +Per fare un tunnel con Syncthing
 +
 +<code>
 +ssh -L 9090:127.0.0.1:8384 nome_host_distante
 +</code>
 +----
 +Per fare un tunnel che mi permetta di scavalcare il firewall dell'Istituto e di accedere alla mia postazione in biblioteca da casa:
 +
 +sul PC della biblioteca:
 +
 +<code>
 +ssh -R 9091:localhost:22 freebsd@164.90.160.203
 +</code>
 +
 +(freebsd@164.90.160.203 è una VM DigitalOcean senza firewall attivato)
 +
 +e poi, da qualsiasi altro PC collegato alla VM, fare:
 +
 +<code>
 +ssh -p 9091 francesco@localhost
 +</code>
 +
 +e, una volta inserita la password, eccomi collegato al PC del lavoro!
 +
 +----
 +
 +[[sshfs]]
openssh.1520170775.txt.gz · Last modified: 2018/03/04 14:39 by francesco