Fix permissions on "~/.ssh/authorized_keys"
This commit is contained in:
parent
d5fa7416ff
commit
4e4029a076
|
@ -13,6 +13,7 @@ module VagrantPlugins
|
||||||
comm.execute(<<SCRIPT)
|
comm.execute(<<SCRIPT)
|
||||||
sed -e '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.new
|
sed -e '/^.*#{contents}.*$/d' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.new
|
||||||
mv ~/.ssh/authorized_keys.new ~/.ssh/authorized_keys
|
mv ~/.ssh/authorized_keys.new ~/.ssh/authorized_keys
|
||||||
|
chmod 600 ~/.ssh/authorized_keys
|
||||||
SCRIPT
|
SCRIPT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue