改LogLevel为VERBOSE 之后 看到如下的log输出 Jul 5 17:57:09 atom sshd[3789]: Connection from 192.168.0.105 port 49681 Jul 5 17:57:09 atom sshd[3789]: Address 192.168.0.105 maps to atom.local, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! Jul 5 17:57:09 atom sshd[3789]: Failed none for root from 192.168.0.105 port 49681 ssh2 Jul 5 17:57:30 atom sshd[3789]: Accepted password for root from 192.168.0.105 port 49681 ssh2 Jul 5 17:57:30 atom sshd[3789]: pam_unix(sshd:session): session opened for user root by (uid=0) Jul 5 17:57:30 atom sshd[3789]: subsystem request for sftp Jul 5 17:57:30 atom sshd[3789]: Connection closed by 192.168.0.105 Jul 5 17:57:30 atom sshd[3789]: pam_unix(sshd:session): session closed for user root Jul 5 17:57:30 atom sshd[3789]: Transferred: sent 1960, received 1424 bytes Jul 5 17:57:30 atom sshd[3789]: Closing connection to 192.168.0.105 port 49681
问题在哪? 2010/7/5 Dongsheng Song <[email protected]>: > 我用普通用户没有问题。 > 你修改 sshd 的日志级别,再登录 sftp,看看 sshd 的日志报告什么问题? > > Syslog Facility AUTH > LogLevel VERBOSE 或 DEBUG > > tail -f /var/log/auth.log > > 2010/7/5 higeon <[email protected]> >> >> 在debian 5.04 lenny下我按照下面的方法设定了root的自动登录和自动startx。 >> 后 来发现用root用户sftp登录登不进去。但是ssh却没问题。 >> 我发现只要去掉root用户的.bashrc中的自动startx设定,sftp就可以正常登录。 >> >> root自动登录和自动startx的设定如下: >> >> 修改/etc/inittab >> 把 >> 1:2345:respawn:/sbin/getty 38400 tty1 >> 修改为 >> 1:2345:respawn:/sbin/rungetty tty1 --autologin root >> >> 在/root/.bashrc中添加 >> # Auto start X >> if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then >> while true >> do >> startx >> done >> fi >> >> ※以上设定我参考了 >> http://forums.debian.net/viewtopic.php?t=29333 >> >> ※PermitRootLogin 设定为 yes,没有改过。 >> >> 谁能帮忙解决这个问题? >> >> 谢谢! > >

