Skip to content

Commit

Permalink
otb-remote: chmod 600 for dropbear/authorized_keys (#624)
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas BEE <lucas.bee@corp.ovh.com>
  • Loading branch information
PouuleT authored and gregdel committed Aug 3, 2017
1 parent b4be2e2 commit 2794064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otb-remote/init
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ start_instance() {
echo "${remote_public_key} ${1}" >> /etc/dropbear/authorized_keys
fi

chmod 0600 "${dir}/known_hosts"
chmod 0600 "${dir}/known_hosts" /etc/dropbear/authorized_keys

procd_open_instance
procd_set_param command /usr/bin/ssh -l limited-user "$host" -p "$port" -N -R "6666:0.0.0.0:$forwarded_port" -K 30 -i /etc/dropbear/dropbear_rsa_host_key
Expand Down

0 comments on commit 2794064

Please sign in to comment.