December 19, 20196 yr Not sure why this is failing. I currently have my authorized_keys file stored at /boot/config/ssh/authorized keys My go file has a line which runs a script #persist the Authorized Keys /boot/config/ssh/setup_ssh_client.sh The setup_ssh_client.sh script does: #!/bin/bash mkdir /root/.ssh chmod 700 /root/.ssh cp /boot/config/ssh/authorized_keys /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys But even after manually putting the file in that location and then restarting the SSH Daemon, still getting public key error. o_O Am i just having one of those days and it's blatantly obvious? tried generating a new key pair but that didn't work Edited December 20, 20196 yr by techsperion Solved
December 19, 20196 yr Community Expert change: /boot/config/ssh/setup_ssh_client.sh to bash /boot/config/ssh/setup_ssh_client.sh
December 19, 20196 yr Author ta! that might fix the automation piece - but still spinning as to why after manually putting the file in the correct location it's still failing
December 19, 20196 yr Community Expert See release notes, it's because of improved security, scripts can no longer be executed directly from the flash drive.
December 19, 20196 yr Author 1 hour ago, johnnie.black said: See release notes, it's because of improved security, scripts can no longer be executed directly from the flash drive. Thanks @johnnie.black, I think the script is a red herring here so lets leave it to one side. I manually add my public key to the /root/.ssh/authorized_keys I should be able to SSH in using Public Key Auth but it fails. Can't undestand it :/
December 20, 20196 yr Author Seems like the permissions for the /root/.ssh folder now require 755 as opposed to 700 So to resolve this, wherever your script is running: chmod 755 /root/.ssh All working now
December 20, 20196 yr Author 20 hours ago, johnnie.black said: change: /boot/config/ssh/setup_ssh_client.sh to bash /boot/config/ssh/setup_ssh_client.sh Also thanks for this! Was getting permission denied in the User Scripts plugin and this change allowed the script to run
Archived
This topic is now archived and is closed to further replies.