Difference between revisions of "Setup Mac for ssh into synology"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
== Set up Password-less Login == | |||
'''For an unattended script, your Mac needs to log in without a password. Open Terminal on your Mac:''' | |||
'''Generate a key:''' | |||
ssh-keygen -t ed25519 (Press Enter through all prompts). | |||
'''Copy it to the NAS:''' | |||
ssh-copy-id -i ~/.ssh/id_ed25519.pub your_nas_user@100.x.y.z | |||
'''Test it:''' | |||
ssh your_nas_user@100.x.y.z. If you get in without a password, you’re ready. | |||
=Create config file= | =Create config file= | ||
'''Create a config file in the ~/.ssh/config''' | '''Create a config file in the ~/.ssh/config''' | ||
Revision as of 18:52, 24 April 2026
Set up Password-less Login
For an unattended script, your Mac needs to log in without a password. Open Terminal on your Mac: Generate a key:
ssh-keygen -t ed25519 (Press Enter through all prompts).
Copy it to the NAS:
ssh-copy-id -i ~/.ssh/id_ed25519.pub your_nas_user@100.x.y.z
Test it:
ssh your_nas_user@100.x.y.z. If you get in without a password, you’re ready.
Create config file
Create a config file in the ~/.ssh/config This file contains the host name and the path to the ssh keys
Host wendy
HostName 192.168.20.22
User myname
IdentityFile ~/.ssh/keyidfile
IdentitiesOnly yes
#for tailscale
Host wendy-tailscale
HostName 1.1.1.1
User myname
IdentityFile ~/.ssh/keyfile
IdentitiesOnly yes