LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-26-2012, 08:40 PM   #1
RileyTheWiley
Member
 
Registered: Dec 2007
Posts: 59

Rep: Reputation: 15
Can't make Putty/ssh connection to Linux


Cast of characters:
- Ventris, a win8 machine
- Atticus, a Fedora 14 machine

They are on the same router. Each can ping the other by IP address, each can load web pages and ping the world by hostname. They don't know each other's hostnames, but can ping each other by IP address.

When I run 'ssh uname@atticus' from atticus, I am prompted for a password and log in successfully.

When I run putty from Ventris and point it at atticus' ip address with settings on SSH, I get a timeout. The putty log on ventris exists but is empty. The SSH log on atticus does not gain a new entry (it does show the successful login from atticus).

I used netstat to verify that SSHD on atticus is using port 22 and it is open for both 0.0.0.0:22 and *:22.

I have checked the firewall on atticus and enabled SSH using TCP on port 22. This has also failed with the firewall disabled.

I have checked Windows Firewall (McAfee) on Ventris, and opened port 22 for TCP and UDP traffic.

What do I have to do?
 
Old 12-26-2012, 08:50 PM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
can you show us the outcome of:
Code:
sshd -d -d -d
on the server
and:
Code:
ssh -v -v -v
on the client.
 
Old 12-26-2012, 10:48 PM   #3
RileyTheWiley
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by schneidz View Post
can you show us the outcome of:
Code:
sshd -d -d -d
on the server
and:
Code:
ssh -v -v -v
on the client.
Don't have ssh on the client, using putty.

Server says:
[root@atticus ~]# /usr/sbin/sshd -d -d -d
debug2: load_server_config: filename /etc/ssh/sshd_config
debug2: load_server_config: done config len = 551
debug2: parse_server_config: config /etc/ssh/sshd_config len 551
debug3: /etc/ssh/sshd_config:34 setting SyslogFacility AUTHPRIV
debug3: /etc/ssh/sshd_config:64 setting PasswordAuthentication yes
debug3: /etc/ssh/sshd_config:68 setting ChallengeResponseAuthentication no
debug3: /etc/ssh/sshd_config:79 setting GSSAPIAuthentication yes
debug3: /etc/ssh/sshd_config:81 setting GSSAPICleanupCredentials yes
debug3: /etc/ssh/sshd_config:95 setting UsePAM yes
debug3: /etc/ssh/sshd_config:98 setting AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
debug3: /etc/ssh/sshd_config:99 setting AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
debug3: /etc/ssh/sshd_config:100 setting AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
debug3: /etc/ssh/sshd_config:101 setting AcceptEnv XMODIFIERS
debug3: /etc/ssh/sshd_config:107 setting X11Forwarding yes
debug3: /etc/ssh/sshd_config:130 setting Subsystem sftp /usr/libexec/openssh/sftp-server
debug1: sshd version OpenSSH_5.5p1
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: rexec_argv[2]='-d'
debug1: rexec_argv[3]='-d'
debug3: oom_adjust_setup
Set /proc/self/oom_adj from 0 to -17
debug2: fd 3 setting O_NONBLOCK
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
debug2: fd 3 setting O_NONBLOCK
debug3: sock_set_v6only: set socket 3 IPV6_V6ONLY
debug1: Bind to port 22 on ::.
Bind to port 22 on :: failed: Address already in use.
Cannot bind any address.
 
Old 12-26-2012, 10:59 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You can call putty from the command line with the -v (verbose) option. You can also look at the graphical interface's event log. Check for a verbose option.

If cygwin can be installed on Windows 8, you can use it's openssh client, which is the same one Linux uses.

If a live Linux distro will run on the Windows 8 machine (UEFI issues?) you can use the client there.

Logging in to SSH from the same machine as the server won't be very useful.

Last edited by jschiwal; 12-26-2012 at 11:03 PM.
 
Old 12-26-2012, 11:58 PM   #5
RileyTheWiley
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
You can call putty from the command line with the -v (verbose) option. You can also look at the graphical interface's event log. Check for a verbose option.

If cygwin can be installed on Windows 8, you can use it's openssh client, which is the same one Linux uses.

If a live Linux distro will run on the Windows 8 machine (UEFI issues?) you can use the client there.

Logging in to SSH from the same machine as the server won't be very useful.
2012-12-26 20:52:15 Looking up host "192.168.0.4"
2012-12-26 20:52:15 Connecting to 192.168.0.4 port 22
2012-12-26 20:52:36 Failed to connect to 192.168.0.4: Network error: Connection timed out
2012-12-26 20:52:36 Network error: Connection timed out
2012-12-26 20:54:02 Writing new session log (raw mode) to file: putty.log
2012-12-26 20:54:17 ----- Session restarted -----
2012-12-26 20:54:17 Looking up host "192.168.0.4"
2012-12-26 20:54:17 Connecting to 192.168.0.4 port 22
2012-12-26 20:54:38 Failed to connect to 192.168.0.4: Network error: Connection timed out
2012-12-26 20:54:38 Network error: Connection timed out


Client putty log is still empty
 
Old 12-27-2012, 12:05 AM   #6
RileyTheWiley
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
You can call putty from the command line with the -v (verbose) option. You can also look at the graphical interface's event log. Check for a verbose option.

If cygwin can be installed on Windows 8, you can use it's openssh client, which is the same one Linux uses.

If a live Linux distro will run on the Windows 8 machine (UEFI issues?) you can use the client there.

Logging in to SSH from the same machine as the server won't be very useful.
Now I am using a Linux VM that is hosted through VMware workstation on Ventris:

[eric@localhost ~]$ ssh 192.168.0.4
ssh: connect to host 192.168.0.4 port 22: Connection refused

Hmmm ... cannot find a log file on the fedora vm.

Riley
 
Old 12-27-2012, 03:49 AM   #7
RileyTheWiley
Member
 
Registered: Dec 2007
Posts: 59

Original Poster
Rep: Reputation: 15
Needed to set the interface as trusted in the firewall. Solved.

Thanks to all.

Riley
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with remote connection bet. Linux and Win using SSH and Putty cucolin@ Ubuntu 4 10-02-2006 11:53 PM
SSH connection from Linux to Windows using PuTTy legendaryhwk Linux - Security 2 04-05-2006 07:34 PM
Putty and ssh connection hangs KidKootenay Linux - Newbie 7 09-04-2004 12:30 AM
putty SSH connection deWin Linux - Newbie 3 03-26-2004 10:47 AM
my PuTTY connection over ssh is too slow. chris.pickett Linux - Networking 2 11-22-2003 03:57 AM


All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration