LoginSignup
2
0

More than 5 years have passed since last update.

WindowsのOpenSSHを使ってuser:administratorでログインする方法

Last updated at Posted at 2019-05-15

Windowsのことはあまり詳しくなくて、ちょっとだけハマったので、メモ。

Windows10 Homeの場合、GUIからAdministratorユーザーを有効にすることができないっぽいです。よって、SSHでssh administrator@192.168.X.XXとかしてもPasswordが間違っていると出てログインできません。

Windows10 Homeの場合、Administratorを有効にするには、cmdまたはpwshから以下のコマンドを実行します。

$ net user administrator
active account : No

# Administratorを有効にする
$ net user administrator /active:yes

$ net user administrator
active account : yes

# パスワードの設定
$ net user administrator *
or
$ net user administrator ${PASSWORD}

これでSSHからWindowsのadministratorログインが可能になります。

$ ssh administrator@192.168.X.XX

2
0
1

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
2
0