LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08:25 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

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, 08:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 PM.

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