Ssh into mark 1 - best way

I just got my mycroft mark1 yesterday and I’m very excited.

I was wondering if there is an easier way to regularly ssh into mycroft mark1 from my desktop (osx).

So far I asked Mycroft what his IP address was, and when it was given ssh pi@*ip* and reached a terminal.

Remembering the IP would be annoying with regular logons though, and I saw mention somewhere of someone doing something like ssh pi@mark1.local. I wondered if I could do a similar thing. I saw my mark1’s hostname is ‘mark_1’, but ssh pi@mark_1 does not work for me in osx terminal.

One way you could do that would be to add login details to your ssh config at ~/.ssh/config

something like:

Host mycroft 
Hostname mycroft_IP_address_here
IdentityFile ~/.ssh/id_rsa_Ward9250
user pi

you’d need to generate a private/public key pair on your mac (you can google that if you don’t have one) and add the public key (cat ~/.ssh/ to the ~/.ssh/authorized_keys file on the mark1.

then you could just type ssh mycroft

to be able to use mark1.local you would need a router with DNS for local hosts, but i believe it might be a bit out of scope here.

1 Like