Help connecting to linux server from shh client in windows!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help connecting to linux server from shh client in windows!
# 1  
Old 01-21-2009
Help connecting to linux server from shh client in windows!

I just installed the latest version of unbuntu server and want to connect from windows using a ssh client. This is my first linux server, so bare with me =)

For my server...

Code:
cat /etc/hosts

gives me
Code:
127.0.0.1   localhost
127.0.1.1   ubuntuHome

I tried using ssh secure shell and putty in vista. But both cannot connect to it.

Whats wrong and how can I fix it? Or can someone point me to a guide for exactly my situation?

thanks
# 2  
Old 01-21-2009
What are you putting in putty?

You need the ip address of the linux box..

On the linux box run:
Code:
# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:76:91:00:00
          inet addr:X.X.X.X  Bcast:X.X.X.X  Mask:255.255.255.192
          inet6 addr: fe80::20c:76ff:fe91:424d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77754543 errors:2 dropped:0 overruns:0 frame:2
          TX packets:80795889 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2157256162 (2.0 GiB)  TX bytes:3941644204 (3.6 GiB)
          Interrupt:201 Base address:0xe000

Also make sure ssh server is installed and running on the linux box and no firewall is setup on it.
# 3  
Old 01-21-2009
Quote:
Originally Posted by Ikon
What are you putting in putty?

You need the ip address of the linux box..

On the linux box run:
Code:
# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:76:91:00:00
          inet addr:X.X.X.X  Bcast:X.X.X.X  Mask:255.255.255.192
          inet6 addr: fe80::20c:76ff:fe91:424d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77754543 errors:2 dropped:0 overruns:0 frame:2
          TX packets:80795889 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2157256162 (2.0 GiB)  TX bytes:3941644204 (3.6 GiB)
          Interrupt:201 Base address:0xe000

Also make sure ssh server is installed and running on the linux box and no firewall is setup on it.
Putting that in a script and running it, just gives me a bunch of "command not found". Even on my school's server.

When I connect to my school server with putty. I just put in the host name. Which for my server, at least in the same spot where I would check my schools, I have "ubuntuHome".

?
# 4  
Old 01-22-2009
Run only /sbin/ifconfig, that should give you the IP of your machine
To connect to it by it's hostname (like the ones in school) your computer has to know what IP address hides behind it. This is usually done through DNS or the /etc/hosts file (%SYSTEM32%\drivers\etc\hosts on Windows XP)
# 5  
Old 01-23-2009
Quote:
Originally Posted by pludi
Run only /sbin/ifconfig, that should give you the IP of your machine
To connect to it by it's hostname (like the ones in school) your computer has to know what IP address hides behind it. This is usually done through DNS or the /etc/hosts file (%SYSTEM32%\drivers\etc\hosts on Windows XP)
/etc/hosts is what I have from my first post.

Code:
127.0.0.1   localhost
127.0.1.1   ubuntuHome

Unable to connect to ubuntuHome and /sbin/ifconfig gives address of 192.168.1.103 and still unable to connect. I am behind a router if that matters.
# 6  
Old 01-23-2009
Obvious question but I have to ask...did you install and initialize ssh server on your Ubuntu box? That is needed before any ssh connections will work.

Since you do not have a dns server available on your network, you may have to use the physical ip address of the system, not the system name...hopefully you're not using dhcp for your ip address. Set it up for static ip...especially if it's on the same router as your windows box.

Your /etc/hosts file should have entries like this:

127.0.0.1 localhost
127.0.1.1 ubuntuhome

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


The errors you posted look very much like you don't have ssh server setup on that system.
# 7  
Old 01-23-2009
Quote:
Originally Posted by nixnoob
Obvious question but I have to ask...did you install and initialize ssh server on your Ubuntu box? That is needed before any ssh connections will work.

Since you do not have a dns server available on your network, you may have to use the physical ip address of the system, not the system name...hopefully you're not using dhcp for your ip address. Set it up for static ip...especially if it's on the same router as your windows box.

Your /etc/hosts file should have entries like this:

127.0.0.1 localhost
127.0.1.1 ubuntuhome

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


The errors you posted look very much like you don't have ssh server setup on that system.
Yes, I do. I even used ssh on my server to connect to my school's and had no problems.

All of what cat /etc/hosts shows is..
Code:
127.0.0.1    localhost
127.0.1.1    ubuntuhome

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Only differs by the extra localhost ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Unable to SSH from Windows client to Ubuntu Server

I'm trying to setup a small home network environment as a pet project. These are physical machines nothing virtual. Any help or ideas is greatly appreciated. I can ping between both machines and I have Samba established and can read/write different shares. When I try to SSH from Windows 8.1... (10 Replies)
Discussion started by: lombardi4851
10 Replies

2. Shell Programming and Scripting

Connecting to Windows server from UNIX through script

I am trying to connect to a Windows server say 10.1.1.10. This servers has a folder named RAJ in which there are multiple .zip files. All these zip files contain a text file called XYZ.txt. Now i have to merge the content of these XYZ.txt files from each of the .zip file and create a new text... (1 Reply)
Discussion started by: swapniljadav
1 Replies

3. UNIX for Advanced & Expert Users

Help connecting linux box to Windows - winbindd problem

Hi experts - I hope you can help me. I am trying to resolve Windows host names (aka Netbios names, aka "UNC names) from a Linux box. I have added "dns wins" to the "hosts" line at /etc/nsswitch.conf, and installed samba 3.2.2 and ran "winbindd -D". Now, when I go: "wbinfo -N venus" (where... (1 Reply)
Discussion started by: maryg
1 Replies

4. Shell Programming and Scripting

Connecting to Windows Server

Hi, One of the folders in UNIX is mapped with a drive on Windows.From this UNIX machine I want to connect to the Windows Server, perform some checks and view the results back on the UNIX machine. For e.g. if I touch a file under the shared folder on UNIX, I should be able to telnet to Windows... (2 Replies)
Discussion started by: swasid
2 Replies

5. Programming

UDP linux client and Windows server

Hi, I have a situation where i need to communicate a linux client with a windows server, I am using a UDP socket communication channel. I am able to send packets from my linux clients to the windows server but unable to receive any data packet from the server. Do i need to make any setting in... (0 Replies)
Discussion started by: John20
0 Replies

6. UNIX for Advanced & Expert Users

connecting UNIX/Linux to NTP server

Hello i want to connect my solaris & Linux boxes to ntp server i used the command /usr/sbin/ntpdate -s -b -p 8 -u <NTP-IP> and added the NTP server as server in /etc/ntp.conf please help in completing the process and verifying it (1 Reply)
Discussion started by: learn82
1 Replies

7. Programming

tcp server listening, client connecting problems

hello everyone. I tried searching for something related to this, but I figured it was time to ask my own question. I am experiencing these problems using Ubuntu 7.04 I am starting up a TCP listener/server and once connected, will act as a communication/control link with a program on another... (3 Replies)
Discussion started by: pjwhite
3 Replies

8. IP Networking

Explor the Unix server on Windows Client machine

Hi, I am doin a project that'll work as a normal Explorer on Windows but the best thing is it'll be exploring the content of a UNIX server. The application would be runnin on the windows platform with probably a FTP server on UNIX server. How i should proceed? (2 Replies)
Discussion started by: ziaullahk
2 Replies

9. Programming

Windows Client Vs Unix Server?

i have written a TCP client server application in c under unix. The windows systems should also be alowed to connect to the TCP server running on linux.So i wrote a small client application in VB using winsock. The client and server works fine in the linux environment. When i tried to connect the... (0 Replies)
Discussion started by: collins
0 Replies

10. UNIX for Dummies Questions & Answers

Problem Connecting from Windows base OS to linux

I have a network consisting of Linux Server, Win-Nt & 95 OS. I am able to connect from Linux to Win-NT using either ftp / telnet in time. But it takes me around & more than 50 seconds to connect from Wint -Nt/95 to Linux using either ftp/telnet. My network is small & it hardly consists 20-25... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies
Login or Register to Ask a Question