質問編集履歴

3

追記

2022/07/08 03:47

投稿

myao
myao

スコア116

test CHANGED
File without changes
test CHANGED
@@ -97,6 +97,28 @@
97
97
  で接続できています。
98
98
  他のツールでもポート50022指定で接続できています。VSCodeのみ使用できない状態です。
99
99
 
100
+ **追記(2)**
101
+ ---
102
+ 新しく~/.ssh/configを作成し、画像のようにIdentityFileを変更しました。
103
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-07-08/7769c1fa-4002-46f3-92eb-5e66f7ed46d5.png)
104
+ 変更後のログ
105
+ ```ここに言語を入力
106
+ [12:16:47.987] Running script with connection command: ssh -T -D 56007 "ubuntu@18.177.41xx.xxx" bash
107
+ [12:16:47.990] Terminal shell path: C:\windows\System32\cmd.exe
108
+ [12:16:48.259] > ]0;C:\windows\System32\cmd.exe
109
+ [12:16:48.259] Got some output, clearing connection timeout
110
+ [12:16:50.430] > ssh: connect to host 18.177.xx.xxx port 22: Connection refused
111
+ > プロセスが、存在しないパイプに書き込もうとしました。
112
+ [12:16:51.650] "install" terminal command done
113
+ [12:16:51.651] Install terminal quit with output: プロセスが、存在しないパイプに書き込もうとしました。
114
+ [12:16:51.651] Received install output: プロセスが、存在しないパイプに書き込もうとしました。
115
+ [12:16:51.651] Failed to parse remote port from server output
116
+ [12:16:51.652] Resolver error: Error:
117
+ ```
118
+ 変わらずエラーが起こりました。
119
+
120
+ また、古い方の~/.ssh/configでは、何故かSSHターゲットの設定で~/.ssh/config を絶対パスにしなければ、コマンドプロンプトですらSSHサーバーにログインすることができなかったので新しく ~/.ssh/config を作成しました。
121
+
100
122
  **使用ツール**
101
123
  ---
102
124
  Windows 10 Home

2

goji

2022/07/07 14:11

投稿

myao
myao

スコア116

test CHANGED
File without changes
test CHANGED
@@ -78,7 +78,7 @@
78
78
  HostName 18.177.xx.xxx
79
79
  User ubuntu
80
80
  Port 50022
81
- IdentityFile /home/ubuntu/ssh/秘密鍵
81
+ IdentityFile /home/ubuntu/.ssh/秘密鍵
82
82
 
83
83
 
84
84
  **試したこと**

1

追記

2022/07/07 13:46

投稿

myao
myao

スコア116

test CHANGED
File without changes
test CHANGED
@@ -88,6 +88,15 @@
88
88
 
89
89
  ⇒どちらも変わらずエラーが起こりました。
90
90
 
91
+ **追記**
92
+ ---
93
+ コマンドプロンプトでは
94
+ ```ここに言語を入力
95
+ ssh -i ver3_django-training.pem ubuntu@18.177.xx.xxx -p 50022
96
+ ```
97
+ で接続できています。
98
+ 他のツールでもポート50022指定で接続できています。VSCodeのみ使用できない状態です。
99
+
91
100
  **使用ツール**
92
101
  ---
93
102
  Windows 10 Home