Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Go Script Not Fully Executing Script

Featured Replies

I have my go script running a script to move some ssh files into place (authorized keys, known hosts, etc) but it doesn't seem to fully work.

 

 

Here is how it is called in my go (chmod is 777):

/boot/custom/ssh/ssh_prep.sh

 

here is the ssh_prep.sh:

mkdir ~/.ssh
cat /boot/custom/ssh/Wolverine_id_rsa.pub >> ~/.ssh/authorized_keys
cat /boot/custom/ssh/Chaos_id_rsa.pub >> ~/.ssh/authorized_keys
cp /boot/custom/ssh/Juggernaut_id_rsa.pub ~/.ssh/id_rsa.pub
cp /boot/custom/ssh/Juggernaut_id_rsa ~/.ssh/id_rsa
cp /boot/custom/ssh/Juggernaut_known_hosts ~/.ssh/known_hosts
cp /boot/custom/ssh/hosts.allow /etc/
cp /boot/custom/ssh/hosts.deny /etc/
chmod 644 /etc/hosts.allow
chmod 644 /etc/hosts.deny
chmod 700 ~/.ssh/authorized_keys
chmod 600 ~/.ssh/id_rsa*
chmod 600 ~/.ssh/known_hosts

 

 

The ~/.ssh directory is being created and the hosts.allow/deny files are being moved properly but not the id_rsa or the id_rsa.pub and the authorized_keys file doesn't seem to be created.

 

When I run the file manually it works just fine... any ideas? (new to bash scripts so go easy  :) )

 

 

  • Author

I may have found the answer. I have changed ~/.ssh to /root/.ssh

 

I will report back on my findings.

Oh man I was going to say that, but I thought the go script was executed as root anyway.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.