扫描二维码关注官方公众号
返回列表 发布新帖

[求助] ssh登录提示access denied

5271 5
发表于 2012-5-16 20:49:58 | 显示全部楼层 阅读模式
悬赏8丝瓜已解决
本帖最后由 jujiananren 于 2012-5-17 19:55 编辑

linkstation本来好象有ssh但是不会用,就用ipkg另装了个openssh。装完后没怎么设置,打开putty,用root用户和密码登录,提示access denied。就开始找原因了,root的密码是没错的;到/opt/etc/openssh/sshd_config里看,root登录那项是yes,也不是这个原因。

那为何登录不了呢?


sshd_config文件内容见5楼

最佳答案

查看完整内容

试一试取消 “Attempt GSSAPI authentication (SSH-2 only)" ,位置在:under SSH -> Auth -> GSSAPI. 希望对你有帮助。

评论5

MrSmithLv.7 发表于 2012-5-16 20:49:59 | 显示全部楼层
试一试取消 “Attempt GSSAPI authentication (SSH-2 only)" ,位置在:under SSH -> Auth -> GSSAPI. 希望对你有帮助。
pic.png
开始工作
回复

使用道具 举报

kala赞助42℃Lv.9互助团队 PTer团队 发表于 2012-5-17 10:01:26 | 显示全部楼层
root密码不能为空的
回复

使用道具 举报

jujiananren楼主Lv.3 发表于 2012-5-17 10:10:36 | 显示全部楼层
kala 发表于 2012-5-17 10:01
root密码不能为空的

当然不是 说过了root的密码没输错
回复

使用道具 举报

MrSmithLv.7 发表于 2012-5-17 11:01:58 | 显示全部楼层
把/opt/etc/openssh/sshd_config文件贴出来看一看!
开始工作
回复

使用道具 举报

jujiananren楼主Lv.3 发表于 2012-5-17 19:53:31 | 显示全部楼层
MrSmith 发表于 2012-5-17 11:01
把/opt/etc/openssh/sshd_config文件贴出来看一看!

#        $OpenBSD: sshd_config,v 1.84 2011/05/23 03:30:07 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# The default requires explicit activation of protocol 1
#Protocol 2

# HostKey for protocol version 1
#HostKey /opt/etc/openssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /opt/etc/openssh/ssh_host_rsa_key
#HostKey /opt/etc/openssh/ssh_host_dsa_key
#HostKey /opt/etc/openssh/ssh_host_ecdsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#RSAAuthentication yes
#PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile        .ssh/authorized_keys

# For this to work you will also need host keys in /opt/etc/openssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
UsePrivilegeSeparation no
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /opt/var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none

# no default banner path
#Banner none

# override default of no subsystems
Subsystem        sftp        /opt/libexec/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#        X11Forwarding no
#        AllowTcpForwarding no
#        ForceCommand cvs server
回复

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表