3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[MacOS]ssh接続の際、接続拒否エラー

Posted at

経緯

MacOSからwsl(ubuntu)へssh接続を試みた際、何度やっても繋がらない。
試しにlocalhostの通信を試したら、以下のようなエラーと出くわす。

エラー内容

ssh localhost
ssh: connect to host localhost port 〇〇: Connection refused

解決策

Macでは、デフォルトで SSH での接続を受け付けないように設定されている

「システム設定」→「共有」と検索→「リモートログイン」を有効にして、sshでの接続ができるようにする。

以下の図はMacOS Sonoma14.1での例

スクリーンショット 2024-03-19 14.19.55.png

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?