I can't connect via ssh and ftp.

0

The problem appeared about 2 hours ago and I don’t know why.

質問済み 6ヶ月前358ビュー
1回答
0

Is your EC2 instance still running, and in AWS Console does its status check show "2/2 checks passed"?

Check that the public IP address that you are trying to connect to still correct - If the EC2 has been stopped and started then its public IP address will have changed.

profile picture
エキスパート
Steve_M
回答済み 6ヶ月前
  • I have sshd service disabled, how can I enable it?

  • Usually it is sudo systemctl enable sshd; sudo systemctl start sshd

    Depending on your OS it may be plain ssh without the d on the end.

  • "Job for ssh.service failed because the control process exited with error code. See "systemctl status ssh.service" and "journalctl -xeu ssh.service" for details." - Ubuntu

  • Rollback any changes that have been made to the SSH config, most likely alterations to /etc/ssh/sshd_config.

    On a fresh install of Ubuntu the SSH service is definitely configured correctly, which includes that file's contents.

  • systemctl status ssh.service × ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: e> Drop-In: /usr/lib/systemd/system/ssh.service.d └─ec2-instance-connect.conf Active: failed (Result: exit-code) since Fri 2023-11-24 06:16:06 UTC; 42s > Docs: man:sshd(8) man:sshd_config(5) Process: 4734 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=1/FAILURE) CPU: 12ms lines 1-9/9 (END)

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ