LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 02-07-2006, 05:47 PM   #1
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
MEPIS / ssh


Hi i just installed MEPIS and am having some problems getting ssh to work..

i added
iptables -A INPUT -p tcp --dport 22 -j ACCEPT

this did not work
I turned off guarddog/iptables, this does not work. i used the same config as on my other puters, still not working.

Any ideas ?
 
Old 02-07-2006, 06:10 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
only the obvious one of asking if sshd is running.

what is your error message?
 
Old 02-07-2006, 06:13 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try typing, as root, /etc/init.d/ssh restart to see if ssh is running. (or look in /etc/ssh directory to see if sshd_config file exists). Otherwise, sshd is not installed.
 
Old 02-07-2006, 06:17 PM   #4
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Actually the only thing i can tell that is different from my other boxes, is that netstat shows

tcp6 ::::22

the tcp6 could be the problem?

I have restarted ssh , no errors when i do so.
 
Old 02-07-2006, 06:22 PM   #5
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
ps -ef|grep -i sshd ???

can you ssh from the box to itself...

tcp6? what is the netstat output?

Last edited by satinet; 02-07-2006 at 06:24 PM.
 
Old 02-07-2006, 06:25 PM   #6
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:1025          0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:1026          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:515             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:20012           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:1025          127.0.0.1:1615          ESTABLISHED
tcp        0      0 127.0.0.1:1615          127.0.0.1:1025          ESTABLISHED
tcp6       0      0 :::22                   :::*                    LISTEN     
udp        0      0 24.217.6.31:137         0.0.0.0:*                          
udp        0      0 0.0.0.0:137             0.0.0.0:*                          
udp        0      0 24.217.6.31:138         0.0.0.0:*                          
udp        0      0 0.0.0.0:138             0.0.0.0:*                          
udp        0      0 0.0.0.0:68              0.0.0.0:*                          
udp        0      0 0.0.0.0:631             0.0.0.0:*                          
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     5608     /var/run/gcache_port
unix  2      [ ACC ]     STREAM     LISTENING     3693     /var/run/dbus/system_bus_socket
unix  6      [ ]         DGRAM                    3474     /dev/log
unix  2      [ ]         DGRAM                    5993     
unix  3      [ ]         STREAM     CONNECTED     3700     
unix  3      [ ]         STREAM     CONNECTED     3699     
unix  2      [ ]         DGRAM                    3563     
unix  2      [ ]         DGRAM                    3500     
unix  2      [ ]         DGRAM                    3489
 
Old 02-07-2006, 06:31 PM   #7
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by satinet
ps -ef|grep -i sshd ???

root 2903 1 0 23:26 ? 00:00:00 /usr/sbin/sshd

Also, I can ssh to other computers from this one.

Last edited by rjcrews; 02-07-2006 at 06:32 PM.
 
Old 02-07-2006, 07:10 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try ssh user@localhost, of course, putting in your username (root login is probably disabled by default).
 
Old 02-07-2006, 10:20 PM   #9
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
I am able to login in

Code:
ssh user@localhost
The tcp6 seems strange to me though, i am unable to find out how to change this. Also
I read
http://www.linuxquestions.org/questi...highlight=tcp6

and

http://www.linuxquestions.org/questi...highlight=tcp6

and was unable to determine an answer for my problem..Is there any other reason I would be able to log in locally but not remotely?

I have turned off iptables (iptables currently block my ftp access so i can tell when they are off)

I have hosts.allow and hosts.deny in order also.

ifconfig for lo has the inet 127.0.0.1 line...

i tried the netcat -l -p 22 and have no traffic at all.

thanks again

Last edited by rjcrews; 02-07-2006 at 11:03 PM.
 
Old 02-08-2006, 09:32 AM   #10
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
I disabled the ipv6 stuff in /etc/hosts
so now netstat shows regular tcp 0.0.0.0:22 for listening, no ipv6. I am going to assume i have some other problem here..

thanks for the help.
 
Old 02-08-2006, 05:12 PM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
does it refuse connections or time out?
 
Old 02-08-2006, 10:00 PM   #12
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
it was timing out and refusing (i was changing stuff). after i commented out the ipv6 stuff, changed some other crap around, it worked.

the nc -l -p port# from that other post really helped me trouble shoot it though..

really not sure what i did.

thanks for the help/ideas

Last edited by rjcrews; 02-08-2006 at 10:02 PM.
 
Old 02-09-2006, 05:55 PM   #13
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
is it blocked in GuardDog (firewall)?
 
Old 02-09-2006, 06:59 PM   #14
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
the first thing i did was turn it off, so this was not the problem. Although im sure I am going to have problems getting it set back up
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 12:53 PM
Pro Mepis vs. Simply Mepis, What is the difference? pbibaud MEPIS 1 05-25-2005 09:36 PM
Mepis and Simply Mepis jaakkop Linux - Distributions 7 02-13-2005 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 02:02 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