Main / Ssh
For an embedded device with a buildroot kernel, if you want to ssh to the device must create a user or set a root password first. When generating a public/priv key pair with ssh-keygen, the last field in the resulting .pub file is only a comment. You can change the comment with the -C option in the command. See https://serverfault.com/questions/323958/how-do-you-create-an-ssh-key-for-another-user. The keys are stored at /etc/ssh/. How to solve that moronic remote host ID change issue with local network?I tried adding this to /etc/ssh/ssh_config, hope it works: UserKnownHostsFile=/dev/null StrictHostKeyChecking=no How to automate SSH remote commands?1. create a script that has nothing but echo <password>. How to solve stupid repeated passphrase requests when connecting?Use the instructions in this link once you have generated a new key with ssh-keygen: https://stackoverflow.com/questions/3466626/how-to-permanently-add-a-private-key-with-ssh-add-on-ubuntu Add a new file ~/.ssh/config with the contents IdentityFile ~/.ssh/new_rsa_key Host <somename> HostName <IPaddress> User <username> Port 22 IdentityFile /home/<localuser>/.ssh/new_rsa_key |