PDA

View Full Version : [ubuntu] Connecting to OpenSSh Server



hwang251
May 20th, 2008, 03:36 PM
I setup an openssh-server, and is wondering how do I connect to it?

davidshere
May 20th, 2008, 03:49 PM
I setup an openssh-server, and is wondering how do I connect to it?

From another machine, open a terminal window and type


ssh username@192.168.0.0

and replace "username" with your username and "192.168.0.0" with the IP address of your server.

windependence
May 20th, 2008, 03:49 PM
From the command line of the client machine:

ssh user@servername_or_IP

It will prompt you for the user's password and then you will be logged on to the server at a command prompt.

-Tim

davidshere
May 20th, 2008, 03:58 PM
Tim and I both had the same answer ... does that answer your question? There are many ways to connect to a machine via ssh depending on what you want to do.

windependence
May 20th, 2008, 04:05 PM
I guess we should also add that on a Windoze machine you can use PuTTY.

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

-Tim

hwang251
May 20th, 2008, 04:14 PM
From another machine, open a terminal window and type


ssh username@192.168.0.0

and replace "username" with your username and "192.168.0.0" with the IP address of your server.

I tried it, but the the thing times out.
When you say username, do you mean a username created on the machine or hostname.

And is the address, the address next to "inet addr" when I type in ifconfig

windependence
May 20th, 2008, 04:18 PM
I tried it, but the the thing times out.
When you say username, do you mean a username created on the machine or hostname.

And is the address, the address next to "inet addr" when I type in ifconfig

The user name would be the user you created on the server.

The IP address would be the IP address of the server you are trying to connect to.

Also, on the server run this command to start the ssh daemon:

/usr/sbin/sshd

-Tim

cdtech
May 20th, 2008, 04:46 PM
You can see if the port is open by issuing the command:

nmap yourserverip (or your http://server.com)

Could be a firewall issue, you need to allow access to that port (22).

hwang251
May 20th, 2008, 04:48 PM
The user name would be the user you created on the server.

The IP address would be the IP address of the server you are trying to connect to.

Also, on the server run this command to start the ssh daemon:

/usr/sbin/sshd

-Tim

Could you elaborate more about running that command, cause it does not seem to work, when I type that command, and I can't seem to find that folder

davidshere
May 20th, 2008, 04:52 PM
Could be a firewall issue, you need to allow access to that port (22).

If it were a firewall issue, wouldn't it say "connection refused" right away?

cdtech
May 20th, 2008, 04:56 PM
are you running your server gateway as 192.168.1.1 or something along those lines?

Just run "nmap 192.168.1.1" and see if your server is listening on that port.

windependence
May 20th, 2008, 04:56 PM
Could you elaborate more about running that command, cause it does not seem to work, when I type that command, and I can't seem to find that folder

Sorry, should be

sudo /usr/sbin/sshd


-Tim

hwang251
May 20th, 2008, 04:59 PM
Sorry, should be

sudo /usr/sbin/sshd


-Tim

Is anything suppose to pop or anything?

cdtech
May 20th, 2008, 04:59 PM
If it were a firewall issue, wouldn't it say "connection refused" right away?

I stand corrected.

Then the user is not using the correct ip address.

windependence
May 20th, 2008, 05:02 PM
Is anything suppose to pop or anything?

Nope if you get no feedback that's good. :)

Now try your connection again.

-Tim

hwang251
May 20th, 2008, 05:23 PM
Nope if you get no feedback that's good. :)

Now try your connection again.

-Tim

The connection still times out