質問編集履歴
2
ssh接続プログラム実行直後のサーバー側ログ 追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,6 +60,21 @@
|
|
60
60
|
traceback.print_exc()
|
61
61
|
```
|
62
62
|
|
63
|
+
### ssh接続プログラム実行直後のサーバー側ログ
|
64
|
+
-- A session with the ID 256 has been terminated.
|
65
|
+
10月 23 14:12:05 ***.myvps.jp sshd[976]: Invalid user sge from *** port ***8
|
66
|
+
10月 23 14:12:05 ***.myvps.jp sshd[976]: input_userauth_request: invalid user sge [preauth]
|
67
|
+
10月 23 14:12:06 ***.myvps.jp sshd[976]: pam_unix(sshd:auth): check pass; user unknown
|
68
|
+
10月 23 14:12:06 ***.myvps.jp sshd[976]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
|
69
|
+
10月 23 14:12:08 ***.myvps.jp sshd[976]: Failed password for invalid user sge from *** port ***8 ssh2
|
70
|
+
10月 23 14:12:08 ***.myvps.jp sshd[976]: Connection closed by *** port *** [preauth]
|
71
|
+
10月 23 14:13:23 ***.myvps.jp sshd[978]: Invalid user sge from *** port ***2
|
72
|
+
10月 23 14:13:23 ***.myvps.jp sshd[978]: input_userauth_request: invalid user sge [preauth]
|
73
|
+
10月 23 14:13:23 ***.myvps.jp sshd[978]: pam_unix(sshd:auth): check pass; user unknown
|
74
|
+
10月 23 14:13:23 ***.myvps.jp sshd[978]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser=
|
75
|
+
10月 23 14:13:25 ***.myvps.jp sshd[978]: Failed password for invalid user sge from *** port ***2 ssh2
|
76
|
+
10月 23 14:13:25 ***.myvps.jp sshd[978]: Connection closed by *** port ***2 [preauth]
|
77
|
+
|
63
78
|
### 試したこと
|
64
79
|
・FWをきってみる
|
65
80
|
・サーバー再起動
|
1
目的、状況説明追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
|
+
<目的>
|
2
|
-
レンタルサーバー
|
3
|
+
レンタルサーバー(お名前.com VPSプラン CentOS7.6)にインストールしたMySQLを操作したい。
|
4
|
+
<方法>
|
3
|
-
|
5
|
+
自動でMySQLに書き込めるようにしたいのでPythonにてMySQLにアクセスしようと考えています。
|
4
|
-
|
6
|
+
レンタルサーバーのセキュリティ上、rootユーザーにはパスワードはなく、秘密鍵にてログインを行うことになっています。
|
5
|
-
有識者の方、助けていただけないでしょうか。
|
6
7
|
|
7
|
-
### 試したこと
|
8
|
-
・FWをきってみる
|
9
|
-
|
8
|
+
<参考ページ>
|
10
|
-
・秘密鍵再取得
|
11
|
-
|
9
|
+
https://qiita.com/seisyu1985/items/e910d85b2ca6f30db4f2
|
12
10
|
|
11
|
+
|
13
12
|
### 発生している問題・エラーメッセージ
|
14
13
|
例外が発生しました: InternalError (note: full exception trace is shown but execution is paused at: <module>)
|
15
14
|
Packet sequence number wrong - got 45 expected 0
|
@@ -61,6 +60,13 @@
|
|
61
60
|
traceback.print_exc()
|
62
61
|
```
|
63
62
|
|
63
|
+
### 試したこと
|
64
|
+
・FWをきってみる
|
65
|
+
・サーバー再起動
|
66
|
+
・秘密鍵再取得
|
67
|
+
・TeraTermからのSSH接続(成功)
|
68
|
+
|
69
|
+
|
64
70
|
### 補足情報(FW/ツールのバージョンなど)
|
65
71
|
OS:CentOS 7.6
|
66
72
|
Python:3.9.5
|