LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-14-2004, 06:12 PM   #1
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
ssh cant log on!!


I had just installed epic4 onto my second computer and now when I try to ssh into it, i get this mesage

root@darkstar:~# ssh -v -v 192.167.0.3
OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.167.0.3 [192.167.0.3] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
debug1: Calling cleanup 0x8063320(0x0)


normally it just gives me a password prompt for the user I ran the ssh command with, but now it gives me this, does anyone know what my problem is?
 
Old 02-14-2004, 11:59 PM   #2
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
This is a longshot but make sure sshd: ALL is in your hosts.allow file. If that doesn't help, comment out the entire hosts.deny file and try.
 
Old 02-15-2004, 12:07 PM   #3
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
By the looks of it, it appears that you haven't created your keys as it complains (-1) on id_rsa and id_dsa. It also appears that you've disabled V1. Try ssh with version 1. Check your sshd_config.

SSh is also fussy about permissons on .ssh directory files. If they are global readwrie then it will moan.
 
Old 02-15-2004, 10:28 PM   #4
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Quote:
Originally posted by Inexactitude
This is a longshot but make sure sshd: ALL is in your hosts.allow file. If that doesn't help, comment out the entire hosts.deny file and try.
Putting ssh: ALL in your hosts.allow is a bad idea. That opens you up to ssh logins from anywhere. You are better off using something like
ssh: your-hosts-name (or IP address)
You could also use:
ALL: *.yourdomain
to open up any running services to your local network.
or
ALL: 192.168.0.101, 192.168.0.102 (for specific localhosts)

When you use a service like this it first checks the hosts.allow file. If the machine, or ip address, etc. is listed in hosts.allow then you get access. If not, it then goes to hosts.deny to see if it is explicitly denied. That makes using
ALL: ALL
in your hosts.deny file a good idea. That locks out anyone you didn't explicitly list in *.allow.
 
Old 02-16-2004, 01:59 PM   #5
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Original Poster
Rep: Reputation: 30
i figured out my problem, after posting this my network stoped working all togeather, at first i thought it was the crossover cabel, but when i tried (in windows) the onboard LAN adapter for my better computer, things worked. so I ended up installing the NFORCE drivers onto slackware and now i can ssh into my other computer with no problem.

although as i said its an onboard LAN, and since im on a cluster theres alot of idle trafic, i have seen CPU tems dramatically increase since the switch, so im gona have to buy a new lan card soon.
 
  


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 log? IchBin Linux - Newbie 9 08-25-2010 03:50 AM
SSH password less log-in provo1234 Linux - Networking 4 12-30-2004 06:07 PM
something very crazy in my SSH Log!! dexter_modem Linux - Security 3 03-26-2004 11:39 AM
how do you get X-windows when you log on though ssh? digital bots Slackware 11 09-16-2003 04:23 AM
SSH Log Crashed_Again Linux - Security 4 01-25-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:51 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
Open Source Consulting | Domain Registration