LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2009, 09:25 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
ssh: Name or service not known


At 192.168.0.10, I made "~/.ssh/7bckup-cv1" and sent to 192.168..2 as "authorized_keys".

After checking connection two boxes with this key, I wrote ~/.ssh/config with "chmod 600" as follows;

Quote:
host 192.168.0.10
hostname mybox
user 7backup
port 8022
identityfile ~/.ssh/7bckup-cv1
compression yes
protocol 2
And sshcommand as this:
Code:
ssh 192.168.0.10
And I got;

Quote:
[root:maestro:~/.ssh]# ssh 192.168.0.10
ssh: mybox: Name or service not known

Any comment would be appreciated.
 
Old 11-22-2009, 09:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
So ... is mybox entered into either DNS or both machines hosts files?
 
Old 11-22-2009, 10:18 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Tinkster View Post
So ... is mybox entered into either DNS or both machines hosts files?
Tinkster, Thanks a lot!
After changing mybox into DNS, it worked!
 
  


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 tunnel as service Danielite Linux - Server 3 10-15-2007 03:28 AM
ssh name or service not known? gonzojd7 Linux - Networking 11 09-09-2006 12:17 AM
allow SSH service securely cynick Linux - Security 4 04-21-2006 11:22 PM
Starting SSH service jordanfang *BSD 3 04-03-2006 03:49 AM
Can't SSH until restart service Da Puff Mandriva 4 09-14-2005 09:51 PM


All times are GMT -5. The time now is 02:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration