我怎么可能从 Windows ssh 到一台机器,而不是我的 mac?

win*_*ith 5 ssh mac-osx encoding

我现在正在工作,我的同事为我准备了一个 Debian 服务器并离开了。

现在我才发现我可以从 Windows (XP) 机器上使用 PuTTY ssh 进入它就好了(遗憾的是,这里没有 Linux 机器)但是不知何故,当我在 mac 上时,ssh [user@ip]不接受我的密码。

与 SFTP 相同:WinSCP 工作正常,命令行 SCP 或任何 SFTP 软件(如 Cyber​​Duck)根本无法工作。(“错误的用户名或密码”)

我唯一的线索是 OSX 上的 FileZilla 能够在我将其设置为使用不存在的编码时进行连接。它抱怨无效的编码,然后连接就好了。将编码设置为 UTF-8 或自动检测只会再次出现身份验证错误。

ServerFault,你知道如何让这台 Mac 正确连接到机器吗?非常感激。

编辑:这是 ssh -v 的输出:

Angua:~ winsmith$ ssh -v web96_rootmaster@IPADDRESS
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to IPADDRESS [IPADDRESS] port 22.
debug1: Connection established.
debug1: identity file /Users/winsmith/.ssh/identity type -1
debug1: identity file /Users/winsmith/.ssh/id_rsa type -1
debug1: identity file /Users/winsmith/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'IPADDRESS' is known and matches the RSA host key.
debug1: Found key in /Users/winsmith/.ssh/known_hosts:22
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/winsmith/.ssh/identity
debug1: Trying private key: /Users/winsmith/.ssh/id_rsa
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering public key: /Users/winsmith/.ssh/id_dsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password: 
debug1: Authentications that can continue: publickey,keyboard-interactive
Password: 
Run Code Online (Sandbox Code Playgroud)

老实说,我在这方面找不到任何线索。其他人可以吗?

ptm*_*man 1

尝试阅读服务器上的日志,以便您可以了解拒绝连接尝试的原因。基于 debian 的系统为 /var/log/auth.long ,基于 redhat 的系统为 /var/log/security 。