LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2009, 10:43 AM   #1
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Rep: Reputation: 16
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?
 
Old 08-16-2009, 10:51 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
How are you trying to connect?
What are the error messages?
Do you try to connect as root or user?
 
Old 08-16-2009, 02:23 PM   #3
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
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?
 
Old 08-16-2009, 03:03 PM   #4
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
oh and..

..I have enabled port forwarding on my router for port 22
 
Old 08-16-2009, 03:07 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
Old 08-16-2009, 03:14 PM   #6
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
Hmm

I apologise for my ignorance,

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

oh no, I need a geek!
 
Old 08-16-2009, 03:17 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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?
 
Old 08-16-2009, 03:22 PM   #8
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
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!

Last edited by ludo33; 08-16-2009 at 03:24 PM.
 
Old 08-16-2009, 03:25 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
So you are trying to connect to the debian server for ssh over the internet?
what is the output from
Code:
telnet debianserver 22

Last edited by repo; 08-16-2009 at 03:27 PM.
 
Old 08-16-2009, 03:34 PM   #10
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
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?
 
Old 08-16-2009, 03:41 PM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
Old 08-16-2009, 03:45 PM   #12
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
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?
 
Old 08-16-2009, 03:52 PM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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
 
Old 08-16-2009, 03:55 PM   #14
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 16
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
 
Old 08-16-2009, 03:56 PM   #15
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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


Reply

Tags
installation, openssh


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
OpenSSH dream.impres Linux - Newbie 5 08-05-2008 01:31 AM
I installed openssh for redhat 7.3 but no /etc/ssh/ssh_config file was made akay Linux - Networking 1 11-15-2004 05:19 PM
OpenSSH gregoryfrancis Linux - General 4 03-02-2003 01:09 PM
openSSH Niphargus Linux - Security 4 08-06-2002 08:46 PM
OpenSSH Tarantismic Yak Linux - Security 2 07-14-2001 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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