putty access denied,putty远程连接Ubuntu,在输入用户名密码后显示access denied
putty access denied,putty远程连接Ubuntu,在输入用户名密码后显示access denied详细介绍
本文目录一览: putty用root登陆输入不了密码,总是显示ACCESS DENIED,求高手解决
有个很笨的办法,如果都试了还不行,试试在ubuntu server上吧root 的密码修改一下= =
sudo passwd root,新密码,重复一遍。(最好别用小键盘的数字)
按成英式输入法 直接输入完 回车就行了
这个问题出现的原因是:linux 关闭了远程访问,需要开启。
类似于WINDOWS的是否允许远程连接一个道理
解决办法一:在linux 服务器上直接登录,按照第一位网友回答的方式解决即可
ubuntu修改了ssh配置后 putty 还是出现access denied
你可以从以下几点查看实验下。
首先,先备份一下配置文件。
mkdir ~/backup
cp /etc/ssh/ssh_config ~/backup/ssh_config
第二步,编辑文件:
vi /etc/ssh/ssh_config
使用“/”搜搜看下Allow/Deny开头的项目,全部注释掉。(我查看了下,有些文章说AllowUsers参数会限制访问用户,需要在后面添加root,才能使用root账户ssh登陆,但我在我的centos7的ssh_config文件中未看到此参数,虽然有一些其他Allow\Deny开头的参数,不过全部都是被注释状态。可以参考最后我的sshd_config文件。)
修改完成后,重启服务/etc/init.d/ssh start (参考的百度出来的文章结果,我实际实验结果是:守护进程里并没有ssh,无法运行此命令,chkconfig里也没有sshd进程,service也无法重启ssh,所以我直接reboot了系统)
如果,依然不行进行下一步。
第三步,同网段内其他windows主机打开cmd,查看主机ssh端口(如果修改了默认端口,得自行把22修改为正确端口)是否正常。
win+r,输入cmd
ping (ubuntu主机IP地址 ) #首先要保证网络通
telnet (ubuntu主机IP地址 ) 22 #查看端口是否通
如果正常,应该显示类似“SSH-2.0-OpenSSH_6.6.1”的消息,或者是纯黑屏,再次点击回车断开连接。
第四步,如果上一步显示不正常,可能是防火墙设置问题,关闭或设置防火墙
ufw disable (方法一:关闭防火墙)
ufw allow 22/tcp(方法二:打开端口22)
(注:我用的centos采用的是最小化安装,未安装防火墙,这一步骤是我参考的网上资料,未进行实验。具体可自行百度。)
最后附上我的ssh_config文件。
# $OpenBSD: sshd_config,v 1.93 2014/01/10 05:59:19 djm Exp $# This is the sshd server system-wide configuration file. See# sshd_config(5) for more information.# This sshd was compiled with PATH=/usr/local/bin:/usr/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.# If you want to change the port on a SELinux system, you have to tell# SELinux about this change.# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER##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 /etc/ssh/ssh_host_key# HostKeys for protocol version 2HostKey /etc/ssh/ssh_host_rsa_key#HostKey /etc/ssh/ssh_host_dsa_keyHostKey /etc/ssh/ssh_host_ecdsa_keyHostKey /etc/ssh/ssh_host_ed25519_key# Lifetime and size of ephemeral version 1 server key#KeyRegenerationInterval 1h#ServerKeyBits 1024# Ciphers and keying#RekeyLimit default none# Logging# obsoletes QuietMode and FascistLogging#SyslogFacility AUTHSyslogFacility AUTHPRIV#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_keysAuthorizedKeysFile .ssh/authorized_keys#AuthorizedPrincipalsFile none#AuthorizedKeysCommand none#AuthorizedKeysCommandUser nobody# For this to work you will also need host keys in /etc/ssh/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 noPasswordAuthentication yes# Change to no to disable s/key passwords#ChallengeResponseAuthentication yesChallengeResponseAuthentication no# Kerberos options#KerberosAuthentication no#KerberosOrLocalPasswd yes#KerberosTicketCleanup yes#KerberosGetAFSToken no#KerberosUseKuserok yes# GSSAPI optionsGSSAPIAuthentication yesGSSAPICleanupCredentials no#GSSAPIStrictAcceptorCheck yes#GSSAPIKeyExchange no#GSSAPIEnablek5users no# 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'.# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several# problems.UsePAM yes#AllowAgentForwarding yes#AllowTcpForwarding yes#GatewayPorts noX11Forwarding yes#X11DisplayOffset 10#X11UseLocalhost yes#PermitTTY yes#PrintMotd yes#PrintLastLog yes#TCPKeepAlive yes#UseLogin noUsePrivilegeSeparation sandbox # Default for new installations.#PermitUserEnvironment no#Compression delayed#ClientAliveInterval 0#ClientAliveCountMax 3#ShowPatchLevel no#UseDNS yes#PidFile /var/run/sshd.pid#MaxStartups 10:30:100#PermitTunnel no#ChrootDirectory none#VersionAddendum none# no default banner path#Banner none# Accept locale-related environment variablesAcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGESAcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENTAcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGEAcceptEnv XMODIFIERS# override default of no subsystemsSubsystem sftp /usr/libexec/openssh/sftp-server# Example of overriding settings on a per-user basis#Match User anoncvs# X11Forwarding no# AllowTcpForwarding no# PermitTTY no# ForceCommand cvs server
putty 为什么老提示access denied
改变/etc/ssh/sshd_config文件中,将PermitRootLoginl默认值“no”改为“yes”,就可以实现使用putty登陆linux(即使用root身份进行登陆)
还有就是修改AllowUsers 我用的是centos 6.7 上述方法并没有效果
我是修改了PasswordAuthentication yes 还有 UsePAM yes 就可以登录了
我遇到了这个情况,是账号输错了。
把账号的大写都改成小写就可以了~
putty登录不了VPS,总是提示:Access denied
先确认是不是端口问题,其次是密码问题,再或者密匙是不是搞错了!
Access Denied! 网站访问被拒绝是怎么回事?
原因:
1、链接失效了。
2、网站上取消外部链接使用了。
解决方法:
1、简单配置SSH,在/etc/ssh/sshd_config文件中,将PermitRootLoginl默认值“no”改为“yes”,就可以实现使用putty登陆linux(即使用root身份进行登陆)。
2、相反,要禁用root身份登陆,则只要将PermitRootLoginl默认值“yes”改为“no”即可实现。
扩展资料:root 登陆提示 ACCESS DENIED 解决办法
1、输入 nano /etc/ssh/sshd_config ,点击回车。
2、找到:# Authentication: LoginGraceTime 120 PermitRootLogin without passwd StrictModes yes。
3、把“PermitRootLogin without passwd”改成“PermitRootLogin yes”,按“ctrl+o”保存再退出,退出后重启一下。
4、这样就可以直接用root登陆了。
putty登陆时一直显示access denied
阿里云需要重设密码 才可以
某些系统限制root远程登录
你可以试试使用普通用户登录
其次,需要在安全组里面开放端口22并将实例加入安全组
希望可以帮助你 请采纳 谢谢
putty远程连接Ubuntu,在输入用户名密码后显示access denied
先本地修改.
#sudo vi /etc/sshd_config
增加或是修改如下内容:
PermitRootLogin yes
若是有注释#,去掉注释#。
Access Denied出现错误,应该怎样解决?
你outlook中有个设置,是我的服务器要求身份验证前面的勾勾没打上. Relay access denied 代表不允许投递,错误号: 0x800CCC79代表服务器未通过身份验证,所以,问题定位于你的oe设置。
其实这个问题是从 SCP 过来的。用 SCP 在两台 Linux 服务器之间传送备份文件。输入完 root 密码后,总是出现 Permission denied, please try again. 错误字样。用 Passwd 命令修改目标服务器 root 密码后,问题还是一样。判断来判断去,问题依旧。具体有以下几条解决办法:
/home 权限问题如果 /home 只支持 root 访问,那么不妨试一下 /tmp ,然后用 mv 命令再转移/etc/ssh/sshd_config 配置问题。
有人说这个配置文件被修改或优化了,找到里边的 PermitRootLogin 选项,将 no 改为 yes。
所有方法都试过了,甚至还改过 passwd, shadow 的权限,都无效。后来重新建立了个用户,授予 root 权限,实验了一下,成功!既然别的账户能成功,为什么root不成呢?再看看putty,发现连接SSH,输入密码后也出现了Access Denied字样。
最后终于找到了解决办法,原来问题还是出在了 sshd_config 里边,在文件最后发现有个 AllowUsers 选项,在后边加上 root 然后重启 sshd 即可。
putty怎么修改宝塔面
一、使用远程连接软件 (如 Putty、XShell) 连接你的Linux服务器,本教程以 Putty 为例。
1.动 Putty.exe 程序,进入 Putty 主界面。
2.在 Host Name 中输入Linux的公网 IP 地址。
使用默认端口 22。
在 Connection Type 中,选择 SSH。
3.点 Open 按钮进行连接。
4.首次次连接,会出现以下弹窗。点击是即可
5.根据提示,输入你要登录的账户,请使用root账户登陆,输入root回车
6.根据提示,需要你输入root密码,输入root密码(密码不会显示在屏幕上),回车即可。
注:如果输入的密码不对,会提示你Access denied,重新输入正确的密码即可,如果忘记了可以
7.进入到这里即表明你已经连接到了你的linux服务器,接下来就可以安装宝塔了。
二、安装宝塔
这里以最新版的宝塔为例
1.选择好脚本下载节点,这里以默认节点为例,完整复制粘贴到你刚刚连接到远程服务的窗口当中
粘贴好后回车即可
2.提示你安装时使用那个下载节点,1香港 2广东 3美国 可根据服务器所在地区选择,输入相应数字回车即可。
3.确认是否要安装宝塔,输入y 回车等待安装完即可
4.安装完成后,会出现面板地址及默认账号与密码。访问ip:8888,输入账号与密码即可使用宝塔
linux急求助,centos 6.2系统,ssh登不上去,显示Access denied,本地显示器不能显示,服务器是dell R710
看看日志里记录的登录错误信息
sshd_config是否使用了AllowUsers
root登录的话,查看PermitRootLogin项,no的话root是无法登录的
注释掉:
#GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
#UsePAM yes
重启 service sshd restart
您好、
您可以到戴尔的技术论坛里去查询一下,这里的信息很全面。
http://support1.ap.dell.com/cn/zh/forum/thread.asp?fid=15&tid=286358
请在单户模式下做下面的验证以确认密码的正确性。
不要用putty等客户端
直接在服务器在单用户模式下开启sshd
在服务器上 执行 ssh root@127.0.0.1
输入密码是否能正常登录。