HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Perfect Setup Ubuntu 7, SSH Question (

chez17 27th July 2007 20:08

Perfect Setup Ubuntu 7, SSH Question
In the Perfect Setup tutorial for Ubuntu 7.04, you mention connecting with PuTTY. I have no idea how to do this, can someone give me a breif explination? Here is my situation:

I am on a laptop running XP that connects to the router wirelessly
The box that has ubuntu on it is connected to the router with a cable

I tried entering into PuTTY on the windows client and it brings up the prompt screen, but it is completely blank and I can not type anything, after a while an error pops up, 'Network error: Connection timed out'. I am completely 100% new to all this, any help would be appreciated.


inshimbi 27th July 2007 20:27

You are getting the message for a few reasons. The ones I can think of are.

1. you dont have sshd running on your linux box. If so make sure you have ssh server installed, you can install openssh or something like that.

2. If sshd is running, maybe your router is blocking port 22 and you need to unblock it.

chez17 27th July 2007 20:31

In the tutorial, I ran:

apt-get install ssh openssh-server

So i think its installed. Do I need to do anything else to get it running? If my router is blocking that port, how do I unblock it?

inshimbi 27th July 2007 22:54

If you installed it like that you shouldn't have to do anything but...who knows.

run lsof -i on your terminal window and see if you see something like this sshd 642 root 3u IPv4 1287 TCP *:ssh (LISTEN)

are you trying to connect to it from somewhere else outside your network or are u at home and trying to connect using a different machine?

The reason I ask this is I work for a company that has port 22 outgoing blocked, and i get the same error you get. I do however can access my machine from other networks including my own.

To make sure your router is accepting port 22 incoming u have to edit your router config via a web interface, should be in router manual, this is different for each router.

also you might have to check on your terminal if port 22 is disabled...
by doing iptables -L (this depends on whether you are running iptables or not)

chez17 28th July 2007 00:34

Ok, so everything started typing with in caps for no reason and It wouldn't even startup so I am currently reinstalling it. I have a feeling if somebody who knew what they were doing was watching me, it would be pretty damn funny. As I said, I literally have no idea whats going on. So I am using the prefect setup tutorial and I have gotten to page 3. I have installed ssh. I am trying to connect to the box form my laptop over a LAN. I am connected to my linksys router wirelessly from the laptop. The linux box is connected to the router with a cable.

chez17 28th July 2007 01:34

Ok, I got it working! I connected with PuTTY. On to the next problem. Now my computer is using the dhcp way of connecting. I am trying to follow this step in the tutorial.:


# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static

The problem is that before I do that, my box can connect to the internet, I can ping a site and get a response. If I do this step and restart the network, the pings no longer work. I lose the connection. I should add that my router's address is, but if I try putting that in for network or gateway, the network wont even restart. You can see the tutorial here:

Any thoughts?

inshimbi 28th July 2007 02:46


if your router's ip is

then the Ip of ur machine should be in the form 192.168.1.XXX where XXX could be 100 or whatever

Since u said its Ip right now is, thats in a completely different subnet than
and the gateway should be 192.168.1,1
so change the IP and try it

chez17 28th July 2007 04:10

OK, I'm making progress. Before I couldn't get the internet to work with a static ip or ssh in. Now I CAN get the internet but still can't ssh in. Im not sure. I have the ip address as, and it still wont work. Im stuck.

falko 28th July 2007 11:18

What's the output of

on the Ubuntu system?

All times are GMT +2. The time now is 02:20.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.