我想在windows中使用cygwin安装sshd。但是当我启动 sshd 服务时,它说:
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
Run Code Online (Sandbox Code Playgroud)
并sshd.log说:
Permissions 0660 for '/etc/ssh_host_dsa_key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_dsa_key
Could not load host key: /etc/ssh_host_dsa_key
Run Code Online (Sandbox Code Playgroud)
那么该如何处理呢?
我有两个问题.
1)有人告诉我,在比较两个Float或Double数据时,请使用compareTo而不是equals.我不知道原因.是否有任何示例显示哪些使用equals会导致错误?
2)看到这段代码:
float f2=(float)1.123450;
Float f3=new Float(1.123450);
System.out.println(f3==f2); // result is true
Run Code Online (Sandbox Code Playgroud)
我认为使用==意味着两个数据指向相同的内存地址.但这样做f3并f2具有相同的地址?不new Float(...)创造新的空间?