LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2008, 05:28 AM   #16
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51

sshd status shows running..
 
Old 09-15-2008, 05:30 AM   #17
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
ssh is running..without any issue.
let me tel you I am able to connect but it hangs the moment I provide password.
 
Old 09-15-2008, 05:33 AM   #18
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Where are you logging in from? Did you run "ssh -X <user>@<hostname>"? You need to use the -X option. If you are logging in using putty, then you need to enable X forwarding and install an X server on windows (such as Cygwin/X). You also need to allow X forwarding in the /etc/ssh/sshd_config file. Ssh sets up a proxy connection using "local:10.0".

Reading though the /etc/ssh/sshd_config file and the sshd_config manpage would be a good idea. You will want to only allow protocol 2 and use "AllowUsers" or "AllowGroups" to disallow all others. The config file is well commented. You can learn how to configure public key authentication by reading the comments above the "UsePam yes" line.

Allowing root logins is a bad idea. It should only be allowed for unattended servers that use ssh for syncing or a cron backup job. And then, you should configure public key authentication and disallow root logins. Root is a known user and the most popular target of brute force attacks. For working manually, one should log in as a regular user and then use sudo or "su -".

Last edited by jschiwal; 09-15-2008 at 05:36 AM.
 
Old 09-15-2008, 05:33 AM   #19
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Again, can you ssh/putty from the same machine or are they different machines?

It sounds like a firewall issue - are you blocking port 22 for some subnets?

Are there any relevant messages in messages in /var/log/secure?

On the putty screen, it is trying to use port 22, etc.
 
Old 09-15-2008, 05:36 AM   #20
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Also, I assume you are doing this from Windows, Have you tried telnetting in

telnet server_IP 22
 
Old 09-15-2008, 05:44 AM   #21
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I am accessing from remote Windows Machine
No iptables is running.
The /var/log/secure says:
Code:
server listening on::port 22
sshd[3697]: error : bind to port 22 on 0.0.0.0 failed:address already in use
telnet server_IP 22 says:

Code:
SSH-1.99-OpenSSH_3.9p1
and If I press any key then:'
it shows "connect lost to host"

Last edited by your_shadow03; 09-15-2008 at 05:47 AM.
 
  


Reply



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
SSH/Putty Linux Newbee Linux - Networking 1 08-06-2008 01:58 PM
[putty&ssh] Who is really good & expert in ssh https tunnelling and firewalling ? Xeratul Linux - General 12 12-03-2006 03:22 AM
Problem with Putty and SSH pcwsp Linux - Software 6 11-18-2006 09:32 AM
SSH and Putty... Linux~Powered Linux - Security 4 06-15-2006 02:50 PM
SSH using putty rkemp Linux - Networking 3 03-06-2004 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 AM.

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
Open Source Consulting | Domain Registration