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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-18-2012, 06:41 AM
|
#1
|
LQ Newbie
Registered: Mar 2011
Posts: 4
Rep:
|
Remoting (SSH) into a cygwin box - error inside
Hi all,
Trying to remote into a SSH Win XP machine running Cygwin (Password based auth, not keys) and I'm receiving the following error, bearing in mind that other users are able to remote into the same box without errors, I've posted a log below to see if anyone can depict any issue with it.
Code:
ant@as:~$ ssh -v -v Administrator@10.1.1.29
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.1.1.29 [10.1.1.29] port 22.
debug1: Connection established.
debug1: identity file /home/ant/.ssh/id_rsa type -1
debug1: identity file /home/ant/.ssh/id_rsa-cert type -1
debug1: identity file /home/ant/.ssh/id_dsa type -1
debug1: identity file /home/ant/.ssh/id_dsa-cert type -1
debug1: identity file /home/ant/.ssh/id_ecdsa type -1
debug1: identity file /home/ant/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
ant@as:~$
It may be worth mentioning that where its saying 'Identity file', those don't actually exist (file wise) in the .ssh directory. Been pulling my hair out about this. Any help would be appreciated. I moved my config and known_hosts file from the .ssh directory leaving 1 private key used for a different machine in there.
Last edited by Antowns; 06-18-2012 at 06:42 AM.
|
|
|
06-18-2012, 08:16 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
ssh expects the connection to be secure and will fail if it can't be made secure. Most commonly I see it fail because either the user's home directory (and/or directories above it) are wide open (e.g. 777 or 666) so allow modification of all files within it including ssh files. At best the home should be chmod'ed 755. Additionally the user's .ssh subdirectory should ONLY be accessible by the user (e.g. chmod'ed 700). Allowing others to change a user's ssh setup means it can't be made secure so ssh will fail without giving good reasons.
|
|
|
06-18-2012, 12:13 PM
|
#3
|
LQ Newbie
Registered: Mar 2011
Posts: 4
Original Poster
Rep:
|
Quote:
Originally Posted by MensaWater
ssh expects the connection to be secure and will fail if it can't be made secure. Most commonly I see it fail because either the user's home directory (and/or directories above it) are wide open (e.g. 777 or 666) so allow modification of all files within it including ssh files. At best the home should be chmod'ed 755. Additionally the user's .ssh subdirectory should ONLY be accessible by the user (e.g. chmod'ed 700). Allowing others to change a user's ssh setup means it can't be made secure so ssh will fail without giving good reasons.
|
Hi,
I chmod'd everything in the home directory including the .ssh folder to 700. This unfortunately didn't help, do you have any other ideas? why are those rsa keys being referenced in the debug output if they don't exist?
Ant
|
|
|
06-18-2012, 12:52 PM
|
#4
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
Its just checking to see if they exits. The -1 on each is telling you they don't.
Do you have XP's firewall set to allow inbound connections to port 22?
Have you verified the directory permissions for BOTH the target user on XP and the source user on the host from which you're launching the ssh?
|
|
|
06-18-2012, 12:56 PM
|
#5
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
What Cygwin version are you running?
I've never been able to get the sshd server working properly on the new version of Cygwin (v1.7) under Win XP. The old Cygwin (called "legacy" on their site, I believe it's v1.5) works fine on XP, and the new Cygwin works fine on Win 7, but the new Cygwin has major sshd problems on XP in my experience.
Last edited by suicidaleggroll; 06-18-2012 at 12:57 PM.
|
|
|
All times are GMT -5. The time now is 09:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|