I wrote a quick article on how to remove the Google Authenticator function of your server when you’re using it logging in through SSH.
See this howto to get access to your shell (over SSL) without a password. This howto generates a certificate which is imported at both local and remote profile.
This howto shows how to generate a certificate to achieve ssh login without password:
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
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: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
jsmith@local-host$ ssh remote-host Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2 [Note: SSH did not ask for password.] jsmith@remote-host$ [Note: You are on remote-host here]
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 22.214.171.124 .
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:
- Click Start, and then click Control Panel.
- If you are in Classic view, click Switch to Category View under Control Panel in the left pane.
- Double-click Printers and Other Hardware, and then click Next.
- Under See Also in the left pane, click Add Hardware,and then click Next.
- Click Yes, I have already connected the hardware, and then click Next.
- At the bottom of the list, click Add a new hardware device, and then click Next.
- Click Install the hardware that I manually select from a list, and then click Next.
- Click Network adapters, and then click Next.
- In the Manufacturer box, click Microsoft.
- In the Network Adapter box, click Microsoft Loopback Adapter, and then clickNext.
- 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
- Open Start, Control Panel, Add Hardware.
- Click Next on the introduction dialog box.
- Select ‘Yes, I have already connected the hardware’ and click Next.
- Scroll to the bottom of the list of hardware, select ‘Add a new hardware device’, then click Next.
- Select ‘Install the hardware that I manually select from a list (Advanced)’, then click Next.
- Select ‘Network adapters’, then click Next.
- Select ‘Microsoft’ as the manufacturer, select ‘Microsoft Loopback Adapter’ as the adapter, then click Next.
- Click Next to confim the installation.
- Click Finish to complete the installation.
- Open Start, Control Panel, Network Connections.
- Select the newly created connection (should be named ‘Local Area Connection N’, where N is its order number).
- Right click on the selected connection and choose Properties from the menu.
- 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.
- Uncheck (disable) everything except ‘Internet Protocol (TCP/IP)’.
- Select ‘Internet Protocol (TCP/IP)’, then click Properties to open ‘Internet Protocol (TCP/IP) Properties’.
- Select ‘Use the following IP address:’ and fill in the ‘IP address:’ and ‘Subnet mask:’ fields (e.g. 10.10.10.10, 255.255.255.0).
- Click Advanced to open ‘Advanced TCP/IP Settings’.
- Switch to WINS and select ‘Disable NetBIOS over TCP/IP’.
- Click OK to close ‘Advanced TCP/IP Settings’.
- Click OK to close the ‘Internet Protocol (TCP/IP) Properties’.
- 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.
- Click OK to close the connection properties.