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 年前
相關內容
- 已提問 2 個月前
- AWS 官方已更新 9 個月前
- AWS 官方已更新 3 年前
- 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