LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2006, 12:54 PM   #1
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
How can I use SSH?


Hello everybody
I tried use ssh but I cant.I have two linux machine.I written ssh -keygen -t dsa in consol and One file is made in /home/wampire/.ssh/id_dsa.pub .And I have to copy id_dsa.pub file another linux machine in /home/user/.ssh/ but I can't have .ssh directory in other linux machine.But sshd is already run on system.I need some help.Good day
 
Old 03-21-2006, 01:28 PM   #2
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
I don't know how you can use SSH only between to systems with static IP but I suppose you can to configure it through iptables.
First of all sshd service must be running on both systems. You need also to check you ssh_config file in /etc/ssh folder. Be sure that you have this line disabled otherwise you'll not be able to connect to or from.

# PasswordAuthentication no

After you are sure ssh is running in order to connect you type in the console:

ssh username@ip

If you type just ssh ip then you will be connected as the user that you are logged in your system.

I hope you will find this information usefull.
 
Old 03-21-2006, 02:54 PM   #3
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Yes I did this what you say.And ssh user@ip then consol says that "ssh: connect to host 10.x.x.x port 22: No route to host ".But Host is already run sshd...

Last edited by wampire; 03-21-2006 at 02:55 PM.
 
Old 03-22-2006, 03:04 PM   #4
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
Do you use any kind of firewall? Try also to ping the other system to see if it responds.
 
Old 03-22-2006, 05:59 PM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Quote:
Originally Posted by wampire
No route to host
Means that your system is on a different IP subnet than the one it is trying to connect to AND it has no route table entry for a router that knows how to get there.

Is this 10.xx.xx.xx host across The Internet from you? if so it is behind a NAT and you can't directly access it unless the administrator of that network opens a port forward to the system for you.
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 10:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 12:53 PM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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