LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-16-2005, 05:31 PM   #16
ice1000
LQ Newbie
 
Registered: Jan 2005
Location: Miami
Distribution: Mandrake 10.1
Posts: 23

Original Poster
Rep: Reputation: 15

I'm definitely learning...something!!!

I installed sshd and tried to install it by using /usr/sbinsshd -d

Here's what I got:
[root@localhost sbin]# /usr/sbin/sshd -d
debug1: sshd version OpenSSH_3.9p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on ::.
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.

OK so I did a bit more research and I ran: nmap -sT -O localhost
which gave me:

Starting nmap 3.55 ( http://www.insecure.org/nmap/ ) at 2005-02-16 18:32 EST
Interesting ports on localhost (127.0.0.1):
(The 1656 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
1024/tcp open kdm
6000/tcp open X11
Device type: general purpose
Running: Linux 2.4.X|2.5.X|2.6.X
OS details: Linux 2.5.25 - 2.6.3 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)
Uptime 9.766 days (since Mon Feb 7 00:09:05 2005)

Nmap run completed -- 1 IP address (1 host up) scanned in 5.677 seconds

Aha! This strange command tells me that ssh is already running and is listening on port 22.

OK, did more research and I ran this:
[root@localhost sbin]# pgrep -f ssh

which gave me this:
7438

So ssh is running. when I try to telnet from the other windows PC, I get a reply saying "could not open connection to the host on port 22. connection failed"

Last edited by ice1000; 02-16-2005 at 06:08 PM.
 
Old 02-16-2005, 06:38 PM   #17
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
ok now we are getting somewhere....

did you forward port 22? do you have a firewall running?
 
Old 02-16-2005, 07:15 PM   #18
ice1000
LQ Newbie
 
Registered: Jan 2005
Location: Miami
Distribution: Mandrake 10.1
Posts: 23

Original Poster
Rep: Reputation: 15
Yes, I do have a firewall running. I am using a Netgear Rp614 DSL router.

I configured port forwarding on port 22. However, the service name is FTP and not Telnet.
 
Old 02-16-2005, 07:23 PM   #19
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
I cant speak intelligently about that firewall so you might be on your own there, but if I had to guess I wouldnt care what it was called as long as it was port 22, or I can just walk you though changing the port to something else.
 
Old 02-22-2005, 04:33 PM   #20
ice1000
LQ Newbie
 
Registered: Jan 2005
Location: Miami
Distribution: Mandrake 10.1
Posts: 23

Original Poster
Rep: Reputation: 15
OK, after taking a break from Linux...

I went back to my Win PC and the telnet 192.168.0.3 22 gave me a result:
SSH-2.0-OPENSSH_3.9p1

I re-ran "nmap -sT -O localhost " and "pgrep -f ssh" and ssh is there!

I will try to download, install & run Putty SSH and let's see if I can get it to work.

Ivan

Last edited by ice1000; 02-22-2005 at 04:44 PM.
 
Old 02-22-2005, 04:45 PM   #21
ice1000
LQ Newbie
 
Registered: Jan 2005
Location: Miami
Distribution: Mandrake 10.1
Posts: 23

Original Poster
Rep: Reputation: 15
Putty ssh running from my Win PC gives me connection refused when I try my DynDNS domain.

When I try my local IP address it connects and asks me for a login & password. It works!

How do I get it to work with my dynDNS domain? The connection is also refused when I use my routers external IP address.

Last edited by ice1000; 02-22-2005 at 05:08 PM.
 
Old 02-22-2005, 10:38 PM   #22
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
I dont know much about DynDNS, you might want start a new post in networking. Glad to hear you are 1/2 way there!
 
  


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
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 11:06 AM
beginner needs various help. meeep Linux - Software 44 08-21-2005 12:10 AM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 09:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM

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

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