Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-16-2005, 09:21 AM
|
#1
|
Member
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386
Rep:
|
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
|
|
|
07-16-2005, 09:28 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
07-16-2005, 04:44 PM
|
#3
|
Member
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386
Original Poster
Rep:
|
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
|
|
|
07-31-2005, 11:20 AM
|
#4
|
Member
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|