Friday, December 1, 2017

multihop ssh with PUTTY

source : https://www.vscentrum.be/client/windows/putty-proxy

 

Setting up a proxy in PuTTY

Setting up the connection in PuTTY is a bit more complicated than for a simple direct connection to a login node.
  1. First you need to start up pageant and load your private key into it. See the instructions on our "Using Pageant" page.
  2. In PuTTY, go first to the "Proxy" category (under "Connection"). In the Proxy tab sheet, you need to fill in the following information:
    1. Select the proxy type: "Local"
    2. Give the name of the "proxy server". This is vsc.login.node, your usual VSC login node, and not the computer on which you want to log on and work.
    3. Make sure that the "Port" number is 22.
    4. Enter your VSC-id in the "Username" field.
    5. In the "Telnet command, or local proxy command", enter the string
      plink -agent -l %user %proxyhost -nc %host:%port
      (the easiest is to just copy-and-paste this text).
      "plink" (PuTTY Link) is a Windows program and comes with the full PuTTY suite of applications. It is the command line version of PuTTY. In case you've only installed the executables putty.exe and pageant.exe, you'll need to download plink.exe also from the PuTTY web site. We strongly advise to simply install the whole PuTTY-suite of applications using the installer provided on that site.
  3. Now go to the "Data" category in PuTTY, again under "Connection".
    1. Fill in your VSC-id in the "Auto-login username" field.
    2. Leave the other values untouched (likely the values in the screen dump)
  4. Now go to the "Session" category
    1. Set the field "Host Name (or IP address) to the computer you want to log on to. If you are setting up a proxy connection to access a computer on the VSC network, you will have to use its name on the internal VSC network. E.g., for the login nodes of the tier-1 cluster Muk at UGent, this is login.muk.gent.vsc and for the cluster on which you can test applications for the Muk, this is gligar.gligar.gent.vsc.
    2. Make sure that the "Port" number is 22.
    3. Finally give the configuration a name in the field "Saved Sessions" and press "Save". Then you won't have to enter all the above information again.
    4. And now you're all set up to go. Press the "Open" button on the "Session" tab to open a terminal window.

No comments:

Post a Comment

Followers

About Me

Torrance, CA, United States