簡體   English   中英

在 Linux 和 Mac 的域中不能 ssh 到 cygwin

[英]Can't ssh to cygwin in a domain from Linux and Mac

頁面之后,我在作為 Windows(Samba)域成員運行的 Windows 10 計算機中成功配置了 Cygwin sshd。

我可以 ssh 從域內的 Windows 10 和域外的 Windows 10 到那台機器。 在這兩種情況下,我都在 Cygwin 中運行 ssh 命令。

But, I can't connect from a Linux Debian 10 machine outside the domain, I can't connect from the Linux Debian 10 running the Samba DC, I can't connect from a Mac outside the domain.

有任何想法嗎?

我總是使用相同的命令來啟動連接ssh nicola@domus ,在每個操作系統中都相同。 我附上了我在嘗試通過 Linux 連接時看到的內容的最后一部分。

$> ssh -vvv nicola@domus
...
debug3: hostkeys_foreach: reading file "/home/p/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/p/.ssh/known_hosts:76
debug3: load_hostkeys: loaded 1 keys from 172.16.3.53
debug1: Host 'domus' is known and matches the ECDSA host key.
debug1: Found key in /home/p/.ssh/known_hosts:75
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug1: Will attempt key: /home/p/.ssh/id_rsa RSA SHA256:hcDASnV1vvd88xpKM/xN2XtUSCvcW3oPUz0izqFMTBE
debug1: Will attempt key: /home/p/.ssh/id_dsa 
debug1: Will attempt key: /home/p/.ssh/id_ecdsa 
debug1: Will attempt key: /home/p/.ssh/id_ed25519 
debug1: Will attempt key: /home/p/.ssh/id_xmss 
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/p/.ssh/id_rsa RSA SHA256:hcDASnV1vvd88xpKM/xN2XtUSCvcW3oPUz0izqFMTBE
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
Connection closed by 172.16.3.53 port 22

我在發布后發現,如果我強制密碼驗證,我實際上可以通過 Linux 和 Mac 進行連接。

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no nicola@domus

但是,我認為這更像是一個快速修復而不是解決方案。 你有更好的想法嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM