Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
blank_dlh
V2EX  ›  Linux

求助: mac 下 ssh 无法连接, "Permission denied"

  •  
  •   blank_dlh ·
    Blankdlh · Jul 9, 2012 · 9269 views
    This topic created in 5231 days ago, the information mentioned may be changed or developed.
    在 win 下用 putty 连接正常, vps 控制面板 ssh 连接正常,但是在 mac 下用 ssh 连接时,输入密码后显示 “Permission denied” 。

    请问谁知道是怎么回事啊- -,我记得之前连虚拟机上的 centos 也是正常的。
    6 replies  •  1970-01-01 08:00:00 +08:00
    bitsmix
    bitsmix
    Jul 9, 2012
    1
    唉。。。

    你本地的私钥和服务器上的公钥不一致。

    和 mac 不 mac 其实没关系。
    liwei
    liwei
    Jul 9, 2012
    2
    加 -v 选项看一下详细信息
    delphiqin
    delphiqin
    Jul 9, 2012
    3
    命令后边加上 -v 可以查看输出的log
    hehuozhao
    hehuozhao
    Jul 9, 2012
    4
    sudo ssh呢
    blank_dlh
    blank_dlh
    OP
    Jul 9, 2012
    5
    @bitsmix 我用的是 password

    解决了,参照 http://forums.macnn.com/t/18494/ssh-permission-denied 删了原有的 .ssh 目录,还是不知道是什么问题- -
    wwwjfy
    wwwjfy
    Jul 9, 2012
    6
    .ssh里应该是有config文件,有些不合适的配置...比如禁用了密码认证,然后又没有对应的rsa
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1419 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:58 · PVG 06:58 · LAX 14:58 · JFK 17:58
    ♥ Do have faith in what you're doing.