LinuxQuestions.org
Help answer threads with 0 replies.
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 07-16-2005, 09:21 AM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
ssh login only with ip


I want to remote login on a server in my (small) network.

All servers and clients get the ip addresses from a dhcp.

According to my documentation I should be able to login on server alpha by issuing the command :

ssh user@alpha

I get a reply : Name or Server not known

If I go to the dhcp and get me the ip address of the server and login with :

ssh user@ip address I get the usual protocol

password etc. and get in.

Why can't I use the name of the server?

Thanks for any suggestions.

CloudBuilder
 
Old 07-16-2005, 09:28 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you add the hostname to your client's hosts file you should be able to do it:
ip.of.ssh.server alpha

Either that or set up a dns server.
 
Old 07-16-2005, 04:44 PM   #3
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Thanks for your reply,

Obviously my ignorance is is the key to all the trouble....
With the big Suse Linux 9 Bible on my desk and a pile of paper next to it, I have sometimes the idea that studying Linux is like digging up Troy with youre bare hands.

In my network all computers have already names, If I go to local network in KDE (suse 9.2) I can see all the servers and I can access them. I see them by name.

My network is in the next form :

Internet - cable modem - router - switches - computers and printers.

The router acts as DHCP and gives all the computers Ip addresses. If I access the router I can see the names of the computers and there IP Addresses.
In the network I can access drives etc by name.

The router is accessing the DNS addresses from the Cabel server and gives them to the network.

I would prefer static addresses, but if I do so I can't access Internet any more. According to the information about the (vigor) router it should even be possible to have static and dynamic addresses if the static are not in the pool from the routers dhcp but they must be in the subnet. I didn't succeed in getting this done but I recently found some more information about what is causing the trouble.

I prefer however doing one thing at a time, so now I am trying to get access to the server over the network.

What you tell me is that I have to put the IPADRES and name in hosts, but since the ipadress is dynamic this will not help me.
As second option you give me the advice to set up a dns server, in that case I have to disable the dhcp activities from the router and that means that I have to reconfigure all boxes......With the chance that afterwards I don't have an internet connection anymore....

What I don't understand is, that obviously in my network all the boxes have a name and they work together with that name, but on the other hand ssh does not accept that name........

Did I understand everything or did I miss the train somewhere?

CloudBuilder
 
Old 07-31-2005, 11:20 AM   #4
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
To all.

After some trying, and reading and trying..................

It is not necessary to have a DNS server.

The problem was :

1 my router was not configured properly.

2 I can login, but the name must have no capitals

Also the remote desktop connection is working fine now, but here also you should use no caps for the name of the server.

CloudBuilder
 
  


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
about ssh login... jsnch Linux - Networking 1 07-05-2005 11:39 PM
SSH Login | Need help !! xedios Linux - Software 0 12-21-2004 12:16 PM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
SSH Login Again gsibble Linux - Newbie 13 08-11-2003 03:15 AM
SSH Login gsibble Linux - Newbie 4 08-10-2003 04:54 AM

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

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