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? |
How are you trying to connect?
What are the error messages? Do you try to connect as root or user? |
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? |
oh and..
..I have enabled port forwarding on my router for port 22
|
Quote:
Can you ping the server? What is the output from telnet serverip 22 |
Hmm
I apologise for my ignorance,
ping times out too, but I can still reach the web pages oh no, I need a geek! |
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? |
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!
|
So you are trying to connect to the debian server for ssh over the internet?
what is the output from Code:
telnet debianserver 22 |
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? |
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:
|
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? |
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 |
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 |
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. |