mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
install-server: don't fail if ~root/.ssh already exists
New AMIs install an authorized_keys file that rejects user login. (imported from commit ad64d0a92e38319b705225a599edfd31a6ba037b)
This commit is contained in:
committed by
Waseem Daher
parent
d515f92d20
commit
0ca76e8cd8
@@ -41,7 +41,7 @@ set +e
|
||||
|
||||
ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -ladmin -o "ControlMaster=no" <<EOF
|
||||
sudo sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config
|
||||
sudo mkdir ~root/.ssh && sudo cp .ssh/authorized_keys ~root/.ssh/authorized_keys
|
||||
sudo mkdir -p ~root/.ssh && sudo cp .ssh/authorized_keys ~root/.ssh/authorized_keys
|
||||
sudo service ssh restart
|
||||
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user