2 回答
- 最新
- 投票最多
- 评论最多
0
Hello.
If for some reason sshd is not started at startup, such an error will occur.
Since it is a new instance, I think the problem can be solved by creating Lightsail again, or by creating a snapshot and having the startup script execute the following command when starting from the snapshot.
https://repost.aws/knowledge-center/lightsail-resolve-ssh-console-errors
sudo ufw disable
sudo iptables -F
sudo mv /etc/hosts.deny /etc/hosts.deny_backup
sudo touch /etc/hosts.deny
sudo systemctl enable sshd
sudo systemctl restart sshd
0
This problem seemed to fix itself! Not sure if it was a propagation issue or something similar but it allowed me to connect this morning without a problem, odd but thankful for the suggestions
已回答 1 年前
相关内容
- AWS 官方已更新 10 个月前
SSH "started" at startup? I appreciate the direction but I'm a little confused by your answer, I didnt have the option to run or start the SSH. Its a new instance and without being able to connect, creating a new one will be easy but my question is where can i "start" the SSH when i create the instance without using the code? I'll read up on your link as well but figured Id ask since I didnt see the SSH option to start when i created the instance