Fixing up an SSH login error after moving to a new ISP. “ssh_exchange_identification: Connection closed by remote host” is caused by the lack of a reverse DNS entry.
At home, we’ve just switched from a slow (2mbps) ADSL connection to a wonderfully fast 40mbps connection provided by the excellent Origin Broadband using the South Yorkshire fibre network provided by Digital Region.
I did have a small problem though that has taken some searching to resolve so I’ll detail it here in case others find it useful. Continue reading “SSH Error: “ssh_exchange_identification: Connection closed by remote host””
Just been asked this question by an ex-colleague so I thought it would be good to do a write up.
How do I monitor my broadband router?
There are a number of measurements that you can do to see the health of your router.
Firstly, you can measure whether the outside world can “see” your router. This does mean that you have to allow “pings” from the Internet which does slightly reduce your router security and so this feature is often turned off by default. I use some external services to monitor the availability of both my web sites and my router:
Each of these have both free and paid services. It is servermojo.com that I mainly use to ping my router.
Secondly, you may be able to turn on something called SNMP (Simple Network Management Protocol) in your router. This is a standard that allows monitoring of all sorts of informationÂ regardingÂ servers, routers, etc. You will need to give the router an IP address of a PC within your network that willÂ receiveÂ the information.
There are a number of free tools that allow you to monitor SNMP To monitor from within your home network, you can use PRTG or the free version of Kiwi Syslog Server.
SNMP will allow you not only to see that the router is alive but whether it is connected to the outside world (the WAN port), what speed communications it is using, how long since the connection came alive and many other parameters.
The key parameters to measure are:
- When the WAN connection went up and down
- What the download speed is
- The Signal to Noise Ratio (SNR)
- The Attenuation
If you are having intermittent router problems, these tools will give you the kind of ammunition you need to take to your ISP to encourage them to take you seriously and get the fault resolved.
I prefer to use VirtualBox rather than VMware as it seems to be rather faster and less resource hungry than VMware Server (the only free version of VMware with a GUI). Also VirtualBox seems to have better Linux host support (sound, etc.).
However, there is one thing that VMware is better at – setting up the guest network on the same network as the host.
Under VirtualBox this is called “Host Interface Networking” and, with a Linux host anyway, is a right royal pain to set up. This is because VirtualBox uses the powerful and flexible bridging capabilities of Linux – but they have no easy GUI setup!
So here is my summary of getting host interface working on my OpenSUSE 10.3 desktop. Firstly though, note that I have two network cards. I am not going to mess with eth0 as this is the card I use for the main network from my desktop. Instead I am going to configure eth1.
- Install the package “bridge-utils”
- Follow the instructions at the OpenSUSE web site to set up a basic bridge. You will end up with a new file in
/etc/sysconfig/network called “ifcfg-br0” containing something like:
## Bridge 0 config - to allow VirtualBox to use
## Host Interface Networking mode with eth1
# Change the above to dhcp to use your networks
# dhcp server to assign an address
# (the next 2 lines are then ignored)
# Note that the above puts the bridge onto a different
# subnet to my main network but that I use class B
# addressing to ensure everything can talk
I think that you may also need to tell the bridge where your default router is. Create a file in the same place as above called
default 192.168.1.1 -
(or whatever your router is).
Then, when you’ve done a “
/etc/rc.d/network restart” as sudo, you should see that eth1 and br0 both come back up.
Note that it is possible that you have to change eth1 to give it a manual IP address of 0.0.0.0, netmask 0.0.0.0 for it to work correctly (as per the instructions in section 220.127.116.11 of the VirtualBox manual – note that some of the rest of those instructions seem to be incorrect). Note that SUSE 11.0 at least has a setting for this in YAST (edit the card config and select none for address assignment).
The ethernet card eth1 is now indirectly used via the bridge br0.
Here is my
NAME='ASUSTeK Marvell 88E8001 Gigabit Ethernet Controller (Asus)'
UPDATE 2008-07-18: In addition to the above, you must create a default route – but don’t do it via YAST! YAST has a bug that often deletes the default route. Instead, put the following line in the file “
default 192.168.1.1 - -
Note the two dashes at the end
- Create a permanent interface for VirtualBox to use (also called a “tap” interface) with the command:
sudo VBoxAddIF vbox0 <user> br0
Where is the VirtualBox user running the VM – I guess you have to do this for every user who might run the VM.
If you run the command “ifconfig” you will now see a new network interface called vbox0 which will reappear along with br0, ethx, etc. every time you reboot.
Note that these VirtualBox interfaces can only be used once so if you have two VM’s, you will need two interfaces. Also note that VirtualBox has a method of creating dynamic interfaces (that only appear when you want them) but that is more complex to set up.
- Now tell your VM configuration to use this interface.
You can do this via the GUI by putting the required name (vbox0) into the network settings box “Interface Name” under the HIS section. Or you can do it with the command:
VBoxManage modifyvm "My VM" -hostifdev1 vbox0
- Make sure that the guest OS is running the network connection with DHCP so that it gets the correct address, gateway, DNS, etc.
- You might need to set a default gateway in the host OS.
Job is done!! After some years of attempting this on and off, it has finally come together and all works. Hopefully this little list is enough to get you going.
UPDATE 2008-08-12: It seems that there is something slightly amis with the above instructions. On reboot, the network is not quite left in the correct state and you have to do a “
/etc/rc.d/network restart” before host networking will actually work.
UPDATE 2008-08-22: Oops, sorry but I got the addif command wrong, it was missing the userid bit. Rats! Blogger keeps eating the < symbol.