SSH usage

Howto

SSHFS - Examples of using Ubuntu file manager to connect via SSH to any server you can log into

SSH Client for Windows

MobaXterm SSH and Xterm MobaXterm SSH and Xterm Web site

SSH Keys instead of passwords - highly recommended for frequent access

Using this step will save lots of time typing in passwords when accessing your remote files
  • You can log in or access a remote account without using a password by following these steps
  1. mkdir ~/.ssh
  2. If you do not have an SSH public key yet then run this command
    • ssh-keygen -t dsa
  3. repeat for rsa, ecdsa, ed25519
  4. copy the contents of the ~.ssh/*.pub file and add it to the end of the file ~/.ssh/authorized_keys2 on the remote host (create this file if it does not exist)
  • Note:
    • ssh-keygen -b 2048 -t rsa is probably better

Other SSH Keys notes

SSH Port Forwarding

* Syntax Example: ssh -X -L 3390:remotepc:3389 userid@unixbox.example.org
    1. ) This does an SSH connection to userid@unixbox.example.org with X windows forwarding
    2. ) Forwards port 3389 to a local port on the client computer 3390.
      • remotepc can be a DNS name known by unixbox.example.org - or an IP
        • In fact unixbox.example.org can be running a private DNS on a NAT and this name lookup will.
    3. ) you can have as many -L forwards as you wish

SSH Agent Forwarding

Proxy

Topic revision: r10 - 2018-01-30 - MikeGore
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback