LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-13-2006, 08:54 PM   #1
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Rep: Reputation: 30
ssh: no address associated with nodename


ok, so i've been following this tutorial:

http://www.linuxquestions.org/linux/...ation_with_ssh

and i got to:
Quote:

2) Copy the public key to the server (you will need to enter the password):
cat ~/.ssh/id_dsa.pub | ssh user@server "cat - >> ~/.ssh/authorized_keys"
and here is my terminal output:

Code:
mactop:~ garyoe$ cat ~/.ssh/id_dsa.pub | ssh server@debian "cat - >> ~/.ssh/authorized_keys"
ssh: debian: No address associated with nodename
mactop:~ garyoe$
server runs debian 3.1
client runs mac os 10.4.7
 
Old 09-13-2006, 09:17 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If debian is the hostname of the SSH server, have you tried the fully qualified domain name? For example:
Code:
cat ~/.ssh/id_dsa.pub | ssh steve@debian.mydomain.com "cat - >> ~/.ssh/authorized_keys"
 
Old 09-14-2006, 05:52 AM   #3
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
i believe debian is hte hostname, as I just installed, but i don't know the whole hostname. is there an easy way to find this out?
 
Old 09-14-2006, 05:58 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If these boxen are on the same network then "hostname -f" on the box you're on should show the fully qualified domainname.

Last edited by unSpawn; 09-14-2006 at 06:17 AM.
 
Old 09-14-2006, 02:12 PM   #5
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
Code:
hostname -f
localhost.localdomain
i don't think this is what i want
 
Old 09-14-2006, 02:43 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Definitely not - it sounds like your host info hasn't been configured. If you know the IP address of the box you can use it instead, but I'd also recommend checking your host name setup.
 
Old 09-14-2006, 05:00 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yeah. Pretty useless, that.
 
Old 09-14-2006, 06:12 PM   #8
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
how do i find my local ip?
 
Old 09-14-2006, 06:26 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try "hostname -i" if the box is properly configured.
 
Old 09-14-2006, 07:35 PM   #10
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
i got my loopback address, so it obviously isn't

how can i properly configure my box
 
Old 09-15-2006, 01:18 AM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm pretty sure that Ubuntu comes with a GUI for network config. You may get more info if you ask a moderator to move this into a Ubuntu forum.
 
Old 09-15-2006, 05:53 AM   #12
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
i'm not running ubuntu - i'm running debian. i don't have a working gui - x crashes whenever i start it. i don't really need one, i want this machine to eventually run without a monitor
 
Old 09-15-2006, 06:02 AM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Sorry about that - I was reading posts from 2 different forums earlier...

Have you seen the docs at http://www.aboutdebian.com/network.htm? They should cover setting up the network - although Debian probably has scripts to cut down on the manual editing.
 
Old 09-15-2006, 02:34 PM   #14
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
woo! ifconfig gave me my local ip and it worked!

thanks
 
Old 09-17-2006, 02:38 PM   #15
garyozzy
Member
 
Registered: Jun 2005
Distribution: RHEL, CentOS, Debian, Ubuntu, Arch
Posts: 181

Original Poster
Rep: Reputation: 30
i'm having new troubles

i got it working! thanks

Last edited by garyozzy; 09-17-2006 at 02:45 PM.
 
  


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
Changing nodename in Fedora Core 4 Kingy Linux - Newbie 1 03-07-2006 10:46 PM
What IP address to use for ssh tredontho Linux - Networking 7 02-19-2006 01:18 AM
deny ip address with ssh DaWallace Slackware 16 05-31-2005 08:40 PM
SSH to an external IP address BluePyre Linux - Software 2 07-14-2004 06:10 PM
ssh IP address problem demain Linux - Newbie 4 01-30-2004 04:57 PM

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

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