LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OpenSSH installed now what? (https://www.linuxquestions.org/questions/linux-software-2/openssh-installed-now-what-747933/)

ludo33 08-16-2009 10:43 AM

OpenSSH installed now what?
 
After much googling and tinkering I just cant get OpenSSH to accept a connection. As I understand it I have to edit the /etc/ssh/config file and generate a key. This is all a bit beyond me, anyone know of a GUI that can ease my pain? If not, what are the minimal changes I must make to the config file and how do I generate a key pair?

I'm just trying to connect my Windows Laptop (using winSCP) to my debian lenny server, what to do with the key pair in this situation?

Any ideas guys?

repo 08-16-2009 10:51 AM

How are you trying to connect?
What are the error messages?
Do you try to connect as root or user?

ludo33 08-16-2009 02:23 PM

Tried everything!!
 
Thanks for your reply.

Tried to connect as root and as a user but no go.

The error I get is "Network error connection timed out"

Must be something I've got to do with the config file..I'm stumped!!

Thanks again, what now?

ludo33 08-16-2009 03:03 PM

oh and..
 
..I have enabled port forwarding on my router for port 22

repo 08-16-2009 03:07 PM

Quote:

The error I get is "Network error connection timed out"
There is a problem with the network.
Can you ping the server?
What is the output from
telnet serverip 22

ludo33 08-16-2009 03:14 PM

Hmm
 
I apologise for my ignorance,

ping times out too, but I can still reach the web pages

oh no, I need a geek!

repo 08-16-2009 03:17 PM

How is the network setup?
are the computers (from which you connect and to which you connect) on your local network?
what are the ip's from the 2 computers?

ludo33 08-16-2009 03:22 PM

Ok
 
I have a server (debian lenny) hooked up to a router that serves up the web pages. I can reach it through the internet for the web site, ftp and webmin from a remote location. Where should I start looking? Bet you a dollar it's that pesky SSH config file!

repo 08-16-2009 03:25 PM

So you are trying to connect to the debian server for ssh over the internet?
what is the output from
Code:

telnet debianserver 22

ludo33 08-16-2009 03:34 PM

from shell...
 
..executed:

> telnet xxx.dnsalias.org 22
Trying 192.168.1.15...
Connected to xxx.dnsalias.org.
Escape character is '^]'.
Connection closed by foreign host.


Yikes, what's a foreign host, that doesn'nt sound good to me?

repo 08-16-2009 03:41 PM

So the connection works
192.168.1.15 is the ip from your debian server?
what is the output from
Code:

ssh 192.168.1.15

Quote:

Yikes, what's a foreign host, that doesn'nt sound good to me?
That is you closing the connection

ludo33 08-16-2009 03:45 PM

Tried..
 
> ssh 192.168.1.15
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).

Its that config file thingy again?

repo 08-16-2009 03:52 PM

What are you using for login and pass?
Does the user, you use to connect exist on the debian server?
Please post the complete output from the commands.
Did you make any changes to the conf file?

try to connect from the server
at te debianserver, open a shell, login as user and type
Code:

ssh 127.0.0.1
post the output

ludo33 08-16-2009 03:55 PM

Output
 
> ssh 127.0.0.1
Host key verification failed.

And I didn't touch the config file as I have no idea what to do

repo 08-16-2009 03:56 PM

Please post the complete output from the commands.
Did you make any changes to the conf file?


All times are GMT -5. The time now is 10:02 AM.