SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
Running 15.0 on a Toshiba Lenovo T430 (hostname: caddis) and trying to ssh to the desktop server/workstation (hostname: salmo; running 14.2). I am having difficulty learning why they won't communicate. I use a high-number port (redacted here); here is the output of running the command ssh -vv salmo after providing my salmo password:
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve: disabling
debug2: resolving "salmo" port nnnnn
ssh: Could not resolve hostname salmo: Temporary failure in name resolution.
In salmo's /etc/hosts there is:
192.168.55.1 salmo, salmo.appl-ecosys.com
I assume you mixed up your information when sharing with us. That entry for /etc/hosts should be on caddis, not just on salmo.
Also, you cannot have provided your salmo password unless you already had a ssh connection between the two hosts. So either you are making this up or you are really confused.
Furthermore, get rid of that comma behind "salmo", it has no place in a hosts file. See "man hosts".
ssh: Could not resolve hostname salmo: Temporary failure in name resolution.
If you want to use names instead of IP addresses, you need to either have a DNS server within your LAN or add the names and corresponding IP addresses to /etc/hosts on whichever client machine you're using.
eg: On your laptop, you need to put this into /etc/hosts:
From salmo I can ssh into caddis and the shell prompt shows 'caddis' as the host.
When I try to ssh from caddis to salmo, after entering my password the shell prompt shows 'caddis' as the host, not 'salmo.' And `ls` shows the contents of ~/ on caddis.
When I try to ssh from caddis to salmo, after entering my password the shell prompt shows 'caddis' as the host, not 'salmo.' And `ls` shows the contents of ~/ on caddis.
Did you fix your /etc/hosts entries, removing the comma that does not belong? I guess not.
You get a password prompt which means the two computers talk to each other, but in the end ssh fails to log you in because of that DNS resolving error. Do you have an old entry for salmo (with the wrong IP address) in your ~/.ssh/config file perhaps?
From salmo I can ssh into caddis and the shell prompt shows 'caddis' as the host.
When I try to ssh from caddis to salmo, after entering my password the shell prompt shows 'caddis' as the host, not 'salmo.' And `ls` shows the contents of ~/ on caddis.
Please show us the output from the following commands on host caddis:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.