There are two mac master in mine Wi-Fi network (laptop and Desktop)I"m trying come ssh laptop from desktop computer - whatever works fineWhen I"m trying come ssh native laptop to desktop computer doing this:

ssh macpro.localI obtain this:

ssh: could not deal with hostname: nodename nor servname provided, or not knowndefining usrename
macpro.local renders no difference

But as soon as I do this:

ssh 192.168.1.67it works.

You are watching: Nodename nor servname provided, or not known

As I said I have actually no problem doing all this on mine desktop.Also when I perform this (on both computers)

/usr/sbin/sshd -tI get this:

Could no load organize key: /etc/ssh_host_rsa_keyCould no load hold key: /etc/ssh_host_dsa_keyPlease help!


*

*

This message implies that you perform not have adequate filesystem permissions for the file containing your key. Usage chmod 600 to collection the civil liberties correctly.


*

*

The factor you get "Could no load host key" is probably because those files contain exclusive keys and also are protected. Try:

sudo /usr/sbin/sshd -tAs to lookups for macpro.localnot working, inspect sharing settings. Listed below the "Computer Name" field, it should tell girlfriend the name that other computers can accessibility your desktop with. The "Edit" switch lets you alter that.


*

I met the comparable issue, I have the right to ping my yet when i ssh it, simply report can"t resolve.I fixed this difficulty by including an empty heat at the finish of /etc/hosts!By the way, it taken place on macOS


Personally, I had an issue with my ~/.ssh/config file. I had actually to eliminate the hold which to be the hold of my far machine.I just had actually to save my ~/.ssh/config as

Host *ServerAliveInterval 300ServerAliveCountMax 22
many thanks for contributing solution to super User!

Please be sure to answer the question. Carry out details and share your research!

But avoid

Asking for help, clarification, or responding to various other answers.Making statements based upon opinion; ago them up with references or an individual experience.

See more: 25+ Best Born Just In Time For Dank Memes 2, Born Just In Time To Browse Dank Memes

To learn more, view our advice on writing great answers.


short article Your answer Discard

By click “Post your Answer”, girlfriend agree to our terms of service, privacy policy and also cookie policy


Not the prize you're feather for? Browse other questions tagged macos networking ssh dns network-shares or ask your very own question.


site design / logo © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.11.11.40717


your privacy

By click “Accept all cookies”, friend agree stack Exchange deserve to store cookie on your device and disclose details in accordance through our Cookie Policy.