FinalSehll连接物理机时,点击链接,弹出输入密码对话框,输入正确密码,两秒钟依旧会弹出输入密码提示框,直至超过默认输入次数,报错:too many authentication failures。

此时应该首先保证正确编辑SSH连接:
Windous上用户名一般都设置为root,但是UOS/Ubuntu并不识别,如果用户名是root,出现该情况时,请将root改为该普通用户的用户名,点击确定,进行连接,成功即可,若不成功,需要修改FinalShell的sshd_config配置文件。
打开终端,输入

sudo vi /etc/sshd/config

ssh_config是服务端主配置文件,这个文件的宿主应当是root,最大权限可为“644”

# 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    <==在开启selinux的系统上,修改ssh端口的要修改selinux规则,用此命令修改
#
#Port 22           <==默认ssh端口,生产环境中建议改成五位数的端口
#AddressFamily any   <==地址家族,any表示同时监听ipv4和ipv6地址
#ListenAddress 0.0.0.0  <==监听本机所有ipv4地址
#ListenAddress ::    <==监听本机所有ipv6地址
HostKey /etc/ssh/ssh_host_rsa_key   <==ssh所使用的RSA私钥路径
#HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key   <==ssh所使用的ECDSA私钥路径
HostKey /etc/ssh/ssh_host_ed25519_key   <==ssh所使用的ED25519私钥路径# Ciphers and keying
#RekeyLimit default none# Logging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV    <==设定在记录来自sshd的消息的时候,是否给出“facility code”
#LogLevel INFO    <==日志记录级别,默认为info # Authentication:#LoginGraceTime 2m    <==限定用户认证时间为2min
#PermitRootLogin yes   <==是否允许root账户ssh登录,生产环境中建议改成no,使用普通账户ssh登录
#StrictModes yes    <==设置ssh在接收登录请求之前是否检查用户根目录和rhosts文件的权限和所有权,建议开启
#MaxAuthTries 6   <==指定每个连接最大允许的认证次数。默认值是 6
#MaxSessions 10   <==最大允许保持多少个连接。默认值是 10 #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   <==公钥验证文件路径#AuthorizedPrincipalsFile none#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication   <==指定服务器在使用 ~/.shosts ~/.rhosts /etc/hosts.equiv 进行远程主机名匹配时,是否进行反向域名查询
#IgnoreUserKnownHosts no  <==是否在 RhostsRSAAuthentication 或 HostbasedAuthentication 过程中忽略用户的 ~/.ssh/known_hosts 文件
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes   <==是否在 RhostsRSAAuthentication 或 HostbasedAuthentication 过程中忽略 .rhosts 和 .shosts 文件# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no    <==是否允许空密码
PasswordAuthentication yes   <==是否允许密码验证,生产环境中建议改成no,只用密钥登录# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no   <==是否允许质疑-应答(challenge-response)认证# Kerberos options
#KerberosAuthentication no   <==是否使用Kerberos认证
#KerberosOrLocalPasswd yes   <==如果 Kerberos 密码认证失败,那么该密码还将要通过其它的认证机制(比如 /etc/passwd)
#KerberosTicketCleanup yes  <==是否在用户退出登录后自动销毁用户的 ticket
#KerberosGetAFSToken no  <==如果使用了AFS并且该用户有一个 Kerberos 5 TGT,那么开启该指令后,将会在访问用户的家目录前尝试获取一个AFS token
#KerberosUseKuserok yes# GSSAPI options
GSSAPIAuthentication yes   <==是否允许基于GSSAPI的用户认证
GSSAPICleanupCredentials 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   <==是否通过PAM验证#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no     <==是否允许远程主机连接本地的转发端口
X11Forwarding yes    <==是否允许X11转发
#X11DisplayOffset 10  <==指定sshd(8)X11转发的第一个可用的显示区(display)数字。默认值是10
#X11UseLocalhost yes  <==是否应当将X11转发服务器绑定到本地loopback地址
#PermitTTY yes
#PrintMotd yes     <==指定sshd(8)是否在每一次交互式登录时打印 /etc/motd 文件的内容
#PrintLastLog yes  <==指定sshd(8)是否在每一次交互式登录时打印最后一位用户的登录时间
#TCPKeepAlive yes  <==指定系统是否向客户端发送 TCP keepalive 消息
#UseLogin no   <==是否在交互式会话的登录过程中使用 login(1)
#UsePrivilegeSeparation sandbox  <==是否让 sshd(8) 通过创建非特权子进程处理接入请求的方法来进行权限分离
#PermitUserEnvironment no  <==指定是否允许sshd(8)处理~/.ssh/environment以及 ~/.ssh/authorized_keys中的 environment= 选项
#Compression delayed  <==是否对通信数据进行加密,还是延迟到认证成功之后再对通信数据加密
#ClientAliveInterval 0  <==sshd(8)长时间没有收到客户端的任何数据,不发送"alive"消息
#ClientAliveCountMax 3   <==sshd(8)在未收到任何客户端回应前最多允许发送多个"alive"消息,默认值是 3
#ShowPatchLevel no
#UseDNS no      <==是否使用dns反向解析
#PidFile /var/run/sshd.pid   <==指定存放SSH守护进程的进程号的路径
#MaxStartups 10:30:100   <==最大允许保持多少个未认证的连接
#PermitTunnel no   <==是否允许tun(4)设备转发
#ChrootDirectory none
#VersionAddendum none# no default banner path
#Banner none  <==将这个指令指定的文件中的内容在用户进行认证前显示给远程用户,默认什么内容也不显示,"none"表示禁用这个特性# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS# override default of no subsystems
Subsystem       sftp    /usr/libexec/openssh/sftp-server   <==配置一个外部子系统sftp及其路径# Example of overriding settings on a per-user basis
#Match User anoncvs    <==引入一个条件块。块的结尾标志是另一个 Match 指令或者文件结尾
#       X11Forwarding no
#       AllowTcpForwarding no
#       PermitTTY no
#       ForceCommand cvs server

将端口Port改为22,找到并用#注释掉:PermitRootLogin prohibit-password
确保PermitEmptyPasswords 设置为no。
新建一行 添加:PermitRootLogin yes
PermitRootLogin yes允许root登录,设为yes。
PermitRootLogin prohibit-password 允许root登录,但是禁止root用密码登录很明显这行需要被注释掉,PermitEmptyPasswords为允许空密码登录,需要为no。再重启服务,再进行连接,成功。若问题没有解决,需要对电脑安装ssh服务并开启。
安装openssh-server:
1、在UOS Terminal 下输入命令:sudo apt-get update
2、在UOS Terminal 下输入命令:sudo apt-get install openssh-server

如果没有报错openssh-server已经安装好了,接下来需要查看SSH服务是否开启,在Terminal输入命令
ps -e |grep ssh
如果出现sshd则已经开启,如图:

否则没有开启,需要输入命令sudo /etc/init.d/ssh start
取开启服务,为了确定开启服务,再用上述命令查看。
在开启ssh服务以后,就可以在终端访问其他物理机,开启的默认端口是22。此时输入命令:
ssh username@192.168.21.22
其中username为需要连接物理机的用户名,192.168.21.117位物理机的地址(终端sudo ifconfig出现的inet地址就是),

需要输入密码,密码为UOS物理机上的用户密码(执行sudo命令需要输入的那个),打开FinalShell进行SSH连接,会出现如下画面:此时UOS系统SSH连接物理机完成。

SSH(FinalShell)连接UOS/Ubuntu系统连接物理机一直提示输入密码相关推荐

  1. VMware虚拟机Ubuntu系统与物理机Windows 7系统共享文件夹

    我的VMware虚拟机里装的系统是Ubuntu,物理主机里安装的是Windows 7,如何让虚拟机里的Ubuntu系统与主机的Win 7共享同一个文件夹呢?这样这两个系统之间就不用通过网络或者U盘等方 ...

  2. 使用nat123远程ssh连接WSL Ubuntu系统

    使用nat123远程ssh连接WSL Ubuntu系统 更新 Multivation 给WSL开启ssh服务 编辑WSL的ssh_config Windows防火墙设置: 测试一下SSH能不能连接 外 ...

  3. 使用Windows远程桌面工具来远程连接控制Ubuntu系统

    转载来源 :使用Windows远程桌面工具来远程连接控制Ubuntu系统 :http://www.safebase.cn/article-258275-1.html 介绍 有时需要在实际的电脑上安装U ...

  4. Ubuntu系统连接Android真机测试

    2019独角兽企业重金招聘Python工程师标准>>> Ubuntu系统连接Android真机调试 作者:gaolei_xj发布于 10月01日访问(444)评论(0) 第一步:查看 ...

  5. Ubuntu虚拟机与物理机磁盘文件共享…

    Ubuntu虚拟机与物理机磁盘文件共享的设置: 要在虚拟机里看到物理主机的磁盘文件,必须设置[共享].首先要在物理主机上建立一文件夹,目的是专供虚拟机使用,并且把这个文件夹设置成网络共享(右键共享与安 ...

  6. Ubuntu系统连接罗技K380键盘

    近日向学习LInux系统的使用,便把windows系统卸载装上了Ubuntu. 下面是罗技K380连接Ubuntu 系统的方法 先打开K380键盘的蓝牙,我选择2,然后进入电脑的终端,输入如下命令 $ ...

  7. Ubuntu系统连接蓝牙鼠标失败问题解决办法

    最近在电脑上安装了Windows 10+Ubuntu 16.04双系统,登录Ubuntu系统后发现无法连接蓝牙鼠标,经过多方查找终于解决问题成功连接鼠标,我对前辈的解决办法添加了一些说明及截图,特此与 ...

  8. 使用ubuntu系统连接不上可移动设备(读卡器+TF卡)

    可移动设备连接的问题 ①问题一 现象 可移动设备中,设备连接到虚拟机的按键都是灰色的(之前是灰色的,现在解决掉这个问题之后) 插入u盘/打印机后,会有弹窗显示连接到虚拟机或主机 但是选择连接到虚拟机后 ...

  9. ubuntu系统连接微软microsoft arc touch鼠标搜索不到鼠标设备

    试了无数次发现始终找不到微软鼠标,就在想要放弃的时候,我决定找个其他ubuntu系统试一下,结果发现我另外一个本子竟然可以连接.我总觉得是通过蓝牙连接的,而且都是蓝牙4.0的协议,即便连接不上,也不至 ...

最新文章

  1. 查看 PHP apache nginx mysql 是如何编译的
  2. python与正则表达式(part7)--re模块使用
  3. [JavaWeb-JavaScript]JavaScript运算符
  4. MySQL 管理猿利器: MySQL ODBC for iPhone!
  5. 95-30-010-Broker- Broker上线下线
  6. C++ 从函数参数中获取指针 指针传递
  7. 【程序35】 ArrayChange.java 题目:输入数组,最大的与第一个元素交换,最小的与最后一个元素交换,输出数组。
  8. word树状分支图_word树状图怎么做分支
  9. 阅读《Keyword-Guided Neural Conversational Model》
  10. java spring 中 每小时一次_spring 定时任务的 执行时间设置规则
  11. 淘宝怎么选品技巧秘籍,做淘宝7分靠选货品
  12. OpenCV读取显示图片报错size.width>0
  13. android 根目录缓存,Android 文件目录存储介绍 缓存目录 | 私有目录 | 系统根目录 | 用户可见目录...
  14. 张鹏:腾讯云直播PCDN加速方案(附视频回放)
  15. 游览器、兼容(五大游览器内核)
  16. 数据结构与算法(java版)
  17. 微特技术钢丝绳探伤仪自动监测系统功能概述
  18. Word,PDF,PPT,TXT之间的转换方法
  19. 8.STC15W408AS单片机定时器/计数器
  20. Oracle_Discoverer10G_Server安装配置

热门文章

  1. linux系统配置php环境,Linux安装配置php环境2种方法linux操作系统 -电脑资料
  2. 【政策汇总】少儿编程能否成为未来学习趋势?
  3. python保留字符串中的数字和字母--filter join
  4. 【实用技能ppt】以后做PPT悠着点,先想这个PPT要点后做
  5. 手写布隆过滤器防止缓存穿透
  6. 数据结构算法——1089. 路由器
  7. 1089: 阶乘的最高位 ZZULIOJ
  8. ext2fsd 源码 分析
  9. 谁的大学不迷茫?大学生存手册,学习上海交大生存手册
  10. 改造Benchmark SQL适配OceanBase开源版数据库跑TPC-C查看执行计划