MEPIS This forum is for the discussion of MEPIS Linux. |
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.
|
|
02-07-2006, 05:47 PM
|
#1
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Rep:
|
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 ?
|
|
|
02-07-2006, 06:10 PM
|
#2
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
only the obvious one of asking if sshd is running.
what is your error message?
|
|
|
02-07-2006, 06:13 PM
|
#3
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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.
|
|
|
02-07-2006, 06:17 PM
|
#4
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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.
|
|
|
02-07-2006, 06:22 PM
|
#5
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
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.
|
|
|
02-07-2006, 06:25 PM
|
#6
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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
|
|
|
02-07-2006, 06:31 PM
|
#7
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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.
|
|
|
02-07-2006, 07:10 PM
|
#8
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
Try ssh user@localhost, of course, putting in your username (root login is probably disabled by default).
|
|
|
02-07-2006, 10:20 PM
|
#9
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
I am able to login in
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.
|
|
|
02-08-2006, 09:32 AM
|
#10
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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.
|
|
|
02-08-2006, 05:12 PM
|
#11
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
does it refuse connections or time out?
|
|
|
02-08-2006, 10:00 PM
|
#12
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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.
|
|
|
02-09-2006, 05:55 PM
|
#13
|
Member
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470
Rep:
|
is it blocked in GuardDog (firewall)?
|
|
|
02-09-2006, 06:59 PM
|
#14
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 02:02 AM.
|
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
|
|