Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 是否有可能将ssh或rsync引入其文件系统已将其自身重新装入只读的系统?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我需要登录进入只读状态的系统.我可以ping它就好了,但我不能再ssh了.是否有一些特殊的命令行标志/参数我可以通过ssh,让我登录进入只读模式的系统? 忘了添加确切的连接错误: OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1:
@H_489_14@
我需要登录进入只读状态的系统.我可以ping它就好了,但我不能再ssh了.是否有一些特殊的命令行标志/参数我可以通过ssh,让我登录进入只读模式的系统? @H_673_16@忘了添加确切的连接错误

OpenSSH_5.3p1,OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: ConnecTing to 192.168.0.4 [192.168.0.4] port 22.
debug1: Connection established.
debug1: identity file /home/username/.ssh/identity type -1
debug1: identity file /home/username/.ssh/identity-cert type -1
debug1: identity file /home/username/.ssh/id_rsa type -1
debug1: identity file /home/username/.ssh/id_rsa-cert type -1
debug1: identity file /home/username/.ssh/id_dsa type -1
debug1: identity file /home/username/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host
@H_673_16@我应该补充一点,ping对于那个盒子非常健壮:

ping 192.168.0.4
PING 192.168.0.4 (192.168.0.4) 56(84) bytes of data.
64 bytes from 192.168.0.4: icmp_seq=1 ttl=64 time=0.662 ms
64 bytes from 192.168.0.4: icmp_seq=2 ttl=64 time=0.088 ms
64 bytes from 192.168.0.4: icmp_seq=3 ttl=64 time=0.089 ms

解决方法

您可以通过调用登录sHell会话来登录.例如,您可以在成功进行身份验证后将命令传递给ssh:
ssh user@host bash --noprofile --norc
@H_673_16@当然,这使用bash作为sHell.不同的sHell将需要适当的参数,以便不触发wtmp / utmp更新,以及不尝试做可能失败的事情并提前注销(即,在sHell通常打开登录时完成其常规任务之前会话).

@H_673_16@警告提示:sHell会相当(非常!)有限,通常没有提示和其他幻想.但这足以让你进入机器并检查出了什么问题.

@H_673_16@编辑添加:根据主机的具体情况,可能需要指定完整路径,例如/ bin / bash作为成功进行身份验证时执行的命令.

大佬总结

以上是大佬教程为你收集整理的linux – 是否有可能将ssh或rsync引入其文件系统已将其自身重新装入只读的系统?全部内容,希望文章能够帮你解决linux – 是否有可能将ssh或rsync引入其文件系统已将其自身重新装入只读的系统?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。