我有一台 Windows 10 Pro 计算机,我可以ssh将其作为cmd. 我希望将 shell 设置为powershell.exe(不是默认的cmd.exe)。
C:\ProgramData\ssh\sshd我尝试在本文中设置以下内容,然后设置Restart-Service sshd,但这不起作用:
Subsystem powershell c:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -sshs -NoLogo -NoProfile
Run Code Online (Sandbox Code Playgroud)
这也不起作用:
Subsystem powershell C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -sshs -NoLogo -NoProfile
Run Code Online (Sandbox Code Playgroud)
我已经确认C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exePowerShell的位置正确。
如何使 shell 成为 PowerShell 以ssh访问 Windows 主机?
2019 年秋季,我的个人笔记本电脑从车上被盗。它受密码保护。我没有想到要设置硬盘驱动器加密程序。
我想知道,如果小偷把我的电脑拆开,取出我的固态硬盘,他们能在没有密码的情况下访问里面的文件吗?
电脑规格
我想保持这个问题的通用性。但是,如果有人问起,这是我的旧笔记本电脑的信息:
我从未手动启用设备加密。我不确定它是否会从制造商处自动启用。