Tag Archives: ssh

Howto: SSH login without password

This howto shows how to generate a certificate to achieve ssh login without password:

Source: thegeekstuff.com

Step 1:

jsmith@local-host$ [Note: You are on local-host here]

jsmith@local-host$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):[Enter key]
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Pess enter key]
Your identification has been saved in /home/jsmith/.ssh/id_rsa.
Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub.
The key fingerprint is:
33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host

Step 2:

jsmith@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
jsmith@remote-host's password:
Now try logging into the machine, with "ssh 'remote-host'", and check in:


to make sure we haven't added extra keys that you weren't expecting.

Step 3:

jsmith@local-host$ ssh remote-host
Last login: Sun Nov 16 17:22:33 2008 from
[Note: SSH did not ask for password.]

jsmith@remote-host$ [Note: You are on remote-host here]

SSH Tunneling on XP

Bitvise Tunnelier is an excellent tool for SSH Tunneling and Terminal access over SSH. Tunnelier supplies a secure SSL connection to a SSH enabled system.

I personally use tunnelier to access my resources (shares, sites, proxy) at home fromout a secure tunnel which is setup to a SSH enabled machine. Tunnelier offers client-to-server forwarding which enables portmapping from your local machine to the remote machine.

For portmapping purposes i used the Microsoft Loopback Adapter with a specific (for me applicable) ip-address .

Here’s a quick how to to get this solution working, download links are listed inside the how to.

1. Installing the Microsoft Loopback Adapter:

To manually install the Microsoft Loopback adapter in Windows XP, follow these steps:

  1. Click Start, and then click Control Panel.
  2. If you are in Classic view, click Switch to Category View under Control Panel in the left pane.
  3. Double-click Printers and Other Hardware, and then click Next.
  4. Under See Also in the left pane, click Add Hardware,and then click Next.
  5. Click Yes, I have already connected the hardware, and then click Next.
  6. At the bottom of the list, click Add a new hardware device, and then click Next.
  7. Click Install the hardware that I manually select from a list, and then click Next.
  8. Click Network adapters, and then click Next.
  9. In the Manufacturer box, click Microsoft.
  10. In the Network Adapter box, click Microsoft Loopback Adapter, and then clickNext.
  11. Click Finish.

After the adapter is installed successfully, you can manually configure its options, as with any other adapter. If the TCP/IP properties are configured to use DHCP, the adapter will eventually use an autonet address (169.254.x.x/16) because the adapter is not actually connected to any physical media.

Note By default, TCP/IP properties are configured to use DHCP.

2. Configure the Microsoft Loopback Adapter for usage with Tunnelier

  • Installing the Loopback Adapter:
    1. Open Start, Control Panel, Add Hardware.
    2. Click Next on the introduction dialog box.
    3. Select ‘Yes, I have already connected the hardware’ and click Next.
    4. Scroll to the bottom of the list of hardware, select ‘Add a new hardware device’, then click Next.
    5. Select ‘Install the hardware that I manually select from a list (Advanced)’, then click Next.
    6. Select ‘Network adapters’, then click Next.
    7. Select ‘Microsoft’ as the manufacturer, select ‘Microsoft Loopback Adapter’ as the adapter, then click Next.
    8. Click Next to confim the installation.
    9. Click Finish to complete the installation.
  • Configure the newly created adapter:
    1. Open Start, Control Panel, Network Connections.
    2. Select the newly created connection (should be named ‘Local Area Connection N’, where N is its order number).
    3. Right click on the selected connection and choose Properties from the menu.
    4. Confirm that ‘Microsoft Loopback Adapter’ (or ‘Microsoft Loopback Adapter #N’) is displayed in the ‘Connect Using:’ field. If it isn’t, return to step 2 and retry properties for another adapter.
    5. Uncheck (disable) everything except ‘Internet Protocol (TCP/IP)’.
    6. Select ‘Internet Protocol (TCP/IP)’, then click Properties to open ‘Internet Protocol (TCP/IP) Properties’.
    7. Select ‘Use the following IP address:’ and fill in the ‘IP address:’ and ‘Subnet mask:’ fields (e.g.,
    8. Click Advanced to open ‘Advanced TCP/IP Settings’.
    9. Switch to WINS and select ‘Disable NetBIOS over TCP/IP’.
    10. Click OK to close ‘Advanced TCP/IP Settings’.
    11. Click OK to close the ‘Internet Protocol (TCP/IP) Properties’.
    12. Optionally (on XP only) uncheck (disable) ‘Notify me when this connection has limited or no conectivity’ to remove the connection warning icon from the system notification area.
    13. Click OK to close the connection properties.
  • Sources: Bitvise, Microsoft