Create new privileged user account 'cyg_server'? yes 输入密码 启动SSH服务:cygrunsrv -S sshd 3、生成SSH Key ssh-keygen -t rsa(密码为空,路径默认) cp .ssh/id_rsa.pub .ssh/authorized_keys 4、登陆测试 ssh localhost
如果用 cygwin,那么直接复制 .ssh 文件夹就行了,如果用 putty 带的那个 sshgen 之类就需要在里面导入你的 key。如果用其他的工具,要参考相关的导入方法。直接复制 .ssh 文件夹的这个方法仅仅适用于 cygwin。
*** Info: (such as passwordless logins [e.g. public key authentication] *** Info: via sshd) when having to create the user token from scratch. *** Info: For more information on this requirement, see *** Info: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1 *** Info:...
Generating public/private rsa1 key pair. Enter file in which to save the key (/home/charlee/.ssh/identity): Enterpassphrase (empty for no passphrase): 输入密码 Enter same passphrase again: 再次输入密码 Your identification has been sabed in /home/charlee/.ssh/identity Your public key has ...
$ ssh-host-config # 引导SSH服务配置 *** Info: Generating /etc/ssh_host_key *** Info: Generating /etc/ssh_host_rsa_key *** Info: Generating /etc/ssh_host_dsa_key *** Info: Creating default /etc/ssh_config file *** Info: Creating default /etc/sshd_config file ...
然后弹出一个New Host Key的对话框,点Accept & Save 后会弹出一个窗口,输入当前windows的登录用户名及密码即可. win7下安装cygwin及配置问题解决 1 ssh-host-config重新配置 如果初始配置错误,大部分网上都建议全部删除再重新安装,但cygwin一旦安装很难完全卸载,只需要把ssh服务停止再重新执行这个命令,再把之前的覆盖...
这里特别注意,新版的openssh不再支持rsa算法,使用rsa生成的默认密钥会无法配置免密登录。 具体上以调试方式使用ssh: 代码语言:javascript 复制 ssh-vvv root@9.123.2.xxx-p36000 然后调试日志中会出现: 代码语言:javascript 复制 debug1:Offeringpublickey:/home/yinzi/.ssh/id_rsaRSASHA256:8+ov/xlPvjwwjPxxxxx...
可能程序不兼容, 可以更换个版本试试。另外建议参考下程序对配置的要求。或者右键需要运行的程序 选择兼容性 用兼容模式运行试试。
*** Query: Create new privileged user account 'cyg_server'? (yes/no) no这两个回答no,其他yes即可---这就是杯具的伏笔。。。耐心往后看吧。。。) 操作也在以管理员身份运行的Cygwin中完成,否则服务会安装失败。 $ ssh-host-config *** Query: Overwrite existing /etc/ssh_config file? (yes/no) ...
这边是通过iterm自带的ssh命令连接,Windows的话有xshell等ssh工具,这个就自行选择吧 具体命令:ssh root@hostname root:你连接服务器的用户名 hostname:你的服务器IP 回车输出: Enter passphrase for key '/Users/arthurw/.ssh/id_rsa': 直接回车跳过,输出:root@hostname's password: ...