我正在尝试替换notepad.exe为notepad2.exe,但是当我尝试使用替换打开文件时遇到了 UAC 权限问题notepad2.exe。我必须以notepad2.exe管理员身份打开。
如何chmod 777在文件上执行相当于 linux 的 Windows 7 ?
我正在尝试从 Linux 服务器无需密码登录到 Windows。我已经从 GitHub 安装了 OpenSSH,并且可以执行scp和ssh. 我尝试将 复制authorized_keys到 Windows 位置。但它仍然无法正常工作。该功能应该是没有密码提示,用于从 linux 环境运行 ssh 或 scp 到登录/显示 windows 目录。
我尝试了以下命令:
cat .ssh/id_rsa.pub | ssh edh_win@xxx.xxx.xxx.xxx 'cat >> .ssh/authorized_keys'
ssh edh_win@xxx.xxx.xxx.xxx "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
Run Code Online (Sandbox Code Playgroud)
但得到错误无法理解cat和chmod。
更新错误
'cat' is not recognized as an internal or external command,
operable program or batch file.
'chmod' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
我需要安装cygwin吗?如果是,请帮助实施。
任何帮助表示赞赏。下面是错误的图像。