質問編集履歴
2
発生している問題・エラーメッセージにログを記載
title
CHANGED
File without changes
|
body
CHANGED
@@ -21,7 +21,31 @@
|
|
21
21
|
$ systemctl start sshd.service
|
22
22
|
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.
|
23
23
|
```
|
24
|
+
▼systemctl status sshd.service
|
25
|
+
```
|
26
|
+
● sshd.service - OpenSSH server daemon
|
27
|
+
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
|
28
|
+
Active: activating (auto-restart) (Result: exit-code) since Mon 2019-02-25 23:37:00 JST; 4s ago
|
29
|
+
Docs: man:sshd(8)
|
30
|
+
man:sshd_config(5)
|
31
|
+
Process: 25613 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
|
32
|
+
Main PID: 25613 (code=exited, status=255)
|
24
33
|
|
34
|
+
Feb 25 23:37:00 xxx-xx-xx-xx systemd[1]: sshd.service: main process exited, ...a
|
35
|
+
Feb 25 23:37:00 118-27-35-77 systemd[1]: Failed to start OpenSSH server daemon.
|
36
|
+
Feb 25 23:37:00 118-27-35-77 systemd[1]: Unit sshd.service entered failed state.
|
37
|
+
Feb 25 23:37:00 118-27-35-77 systemd[1]: sshd.service failed.
|
38
|
+
Hint: Some lines were ellipsized, use -l to show in full.
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
▼journalctl -xe
|
43
|
+
```
|
44
|
+
|
45
|
+
Feb 25 23:40:31 118-27-35-77 systemd[1]: Unit sshd.service entered failed state.
|
46
|
+
Feb 25 23:40:31 118-27-35-77 systemd[1]: sshd.service failed.
|
47
|
+
```
|
48
|
+
|
25
49
|
### 該当のソースコード
|
26
50
|
|
27
51
|
▼/etc/ssh/sshd_configのPortを10222に変更
|
1
同様の質問の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,9 @@
|
|
11
11
|
下記で同様の質問がありましたが、解決した方法の反映が同様のエラーで変更できません。
|
12
12
|
何か解決策がありましたら、ご教授願います。
|
13
13
|
|
14
|
+
▼同様の質問
|
15
|
+
https://teratail.com/questions/122178
|
16
|
+
|
14
17
|
### 発生している問題・エラーメッセージ
|
15
18
|
|
16
19
|
/etc/ssh/sshd_configのPortを10222に変更し再起動しようとするとエラーが表示されます。
|