I try to SSH to edison over wifi but failed
I read many topics and follow their intruction but it doesn't work.
my current version is:
I try ssh root@my_edison.local
and it return : _ssh: Could not resolve hostname my_edison.local: Name or service not known
thank you and regards,
Your ssh client cannot resolve the ip address from the name my_edison.local.
Find out the IP address of your edison with
The address should be after the wlan0: prompt in the output.
Have you set a password for your root user? SSH over WiFi will not work without it.
Use the configure_edison to define the password, the linux command passwd is not enough.
Thank you for your reply
I have used configure_edison --setup and setup password again but still cannot enter ssh root@my_edison.local over wifi
I can tracking my Edison IP through router and use ssh root@my_ip to enter. But it's so inconvenient.
I want to ssh to my ID name so that I don't have to check the IP of edison everytime I log in.
thank you and regards,
Then it is more like a name resolution problem.
If yo don't want to go as far as installing some local name server, the simplest way is (assuming you use a Linux client), adding a line to your client's /etc/hosts configuration file:
From now on you can use the name my_edison.local in the stead of the IP address.
However it only lasts as long as the IP address of the Edison remains the same. To ensure it, you can define a static IP address in the Edison system, or even better let the router do it:
Enter the configuration menu of your router, find the address reservation menu (may as well be as "DHCP lease") and reserve an IP address with the MAC address of your Edison. (MAC is also shown by ifconfig).
Once you set it, whenever the Edison asks for an IP address, it will be given the same IP address.
You mean the /etc/hosts in edison ?
I open it and see : 127.0.0.1 localhost.localdomain localhost
Then I add one more line in the line :
127.0.0.1 localhost.localdomain localhost
And I make 192.168.100.5 to be a Static IP address for Edison.
Then I reboot Edison. But still can't log in by ssh root@my_edison.local
No, you should modify /etc/hosts on the desktop machine. The one you use to ssh to the edison.
(In this relation edison is the ssh server, and the desktop machine from where you log onto the edison, is the client.)
The principle is that you set up a tiny local name resolution immediately on your desktop machine.
When you refer to my_edison.local, the name will be replaced with the ip address locally. Then the real network communication will use this ip address in the background.
This method only works verbatime if your desktop runs linux. For a Win desktop you can find a howto here:
The downside of this method is that this has to be set on each desktop client, but if you use only a few of them, it is not a big issue.
The edison does not have to have this in /etc/hosts, since it does not want to refer to itself.
(If so, the name "localhost" is used.)