Skip to contentSkip to conversation

ssh - connection refused

DISCUSSION Jerry T 4 participants 4 messages Apr 13, 2002

lore
Share & tools
lore

Jerry T

author
#0 lore raw

I have sshd running on a Redhat 7.2 box. Am able to telnet & ftp the box from a win2000 box. To try ssh I set up the following: On the win2000 box under Cygwin I ran "ssh-keygen -t rsa" to generate my key and used ftp to move the id_rsa.pub file to my Linux box. (I copied the file to .ssh/authorized_keys). From Cygwin on win2000 I tried to use slogin to get to my Linux box but I get "Connection Refused."

Also tried to rename authorized_keys to authorized_keys2.

The sshd process starts up when I boot up.

Also tried Putty instead of Cygwin. Same "connection refused" error.

Any ideas on what I am missing?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 7 lines · Jerry T

I have sshd running on a Redhat 7.2 box. Am able to telnet & ftp the box from a win2000 box. To try ssh I set up the following: On the win2000 box under Cygwin I ran "ssh-keygen -t rsa" to generate my key and used ftp to move the id_rsa.pub file to my Linux box. (I copied the file to .ssh/authorized_keys). From Cygwin on win2000 I tried to use slogin to get to my Linux box but I get "Connection Refused."

Quoted 8 lines

Also tried to rename authorized_keys to authorized_keys2.

The sshd process starts up when I boot up.

Also tried Putty instead of Cygwin. Same "connection refused" error.

Any ideas on what I am missing?

You say you use 'slogin' however with putty.exe you type in the approriate hostname or IP# choose SSH from the 4 options below the hostname box and click on open at the bottom of putty's window, it will then attempt to connect to the remote host on port 22 which is the port ssh uses.

On another note you should not need to copy any key files from/to anywhere, new keys should begernated upon a new connection if no key is found.

Signature · 9 lines
Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#2 lore raw
In reply to Jerry T
Quoted 2 lines

From Cygwin on win2000 I tried to use slogin to get to my Linux box but I get "Connection Refused."

Have you tried sshing in from the Linux box?

ssh username@localhost

That's probably less error-prone, and at least confirms that the daemon is running.

Quoted 1 line

The sshd process starts up when I boot up.

Is it listening? netstat -at should include a line something like:

tcp 0 0 *:ssh *:* LISTEN

If that's not present, it usually means the sshd has shut down, or is configured not to listen to the network.

If it is present, look at your packet filtering/firewalling rules (iptables -L for recent distributions).

Steven Smith,
[email protected].

#3 lore raw
In reply to Jerry T

Next question.... does anyone know of a way to sync Star Mail with your Visor Delux handheld computer. If there is a way, please let me know...

Quoted 10 lines · Jerry T

I have sshd running on a Redhat 7.2 box. Am able to telnet & ftp the box from a win2000 box. To try ssh I set up the following: On the win2000 box under Cygwin I ran "ssh-keygen -t rsa" to generate my key and used ftp to move the id_rsa.pub file to my Linux box. (I copied the file to .ssh/authorized_keys). From Cygwin on win2000 I tried to use slogin to get to my Linux box but I get "Connection Refused."

Also tried to rename authorized_keys to authorized_keys2.

The sshd process starts up when I boot up.

Also tried Putty instead of Cygwin. Same "connection refused" error.

Any ideas on what I am missing?

Quoted 8 lines

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs