解决sshfs挂载报错

news/2025/3/19 20:53:17/

使用ssh命令和sshfs命令报错 read: Connection reset by peer

root@jiangcheng01:~/common/remote# sshfs -o allow_other htrd@xxx.xxx.xxx.xxx:/home/htrd /root/common/remote/dev01 read: Connection reset by peer

报错问题排查,追加命令 -o debug -o sshf s_debug

root@jiangcheng01:~/.ssh# sshfs -o allow_other htrd@xxx.xx.xxx.xx:/home/htrd /root/common/remote/dev01 -o debug -o sshf s_debug SSHFS version 2.10.0 FUSE library version: 2.9.9 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-2> <htrd@xxx.xx.xxx.xx> <-s> <sftp> Unable to negotiate with xxx.xx.xxx.xx port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss read: Connection reset by peer

发现问题 ssh-rsa,ssh-dss ,这两个算法,根据网上解决方案,具体的解决方案如下,在命令中新增HostKeyAlgorithms=+ssh-dss

sshfs -oHostKeyAlgorithms=+ssh-dss htrd@xxx.xx.xxx.xx:/home/htrd /root/common/remote/dev01

eg.取消挂载的命令

root@jiangcheng01:~# fusermount -u ~/common/remote/dev01

挂载之后可以使用 exeplorer.exe 打开挂载的文件夹,但是可能也会报错,我今天试了一下,这个命令之前是好的,但是现在不可用了,解决方案1是 加上完整的路径,具体如下所示:

root@jiangcheng01:~/common/remote# cd dev01/ root@jiangcheng01:~/common/remote/dev01# explorer.exe . explorer.exe: command not found root@jiangcheng01:~/common/remote/dev01# explorer.exe . explorer.exe: command not found root@jiangcheng01:~/common/remote/dev01# /mnt/c/windows/explorer.exe . root@jiangcheng01:~/common/remote/dev01#

解决方案2是

echo 'PATH=$PATH:/mnt/c/windows' >> ~/.bashrc

或者修改 ~/.bash_aliases

alias start='/mnt/c/windows/explorer.exe'


http://www.ppmy.cn/news/139722.html

相关文章

特斯拉是什么原因导致的数据泄露被罚247亿元

近日据德国《商报》报道&#xff0c;特斯拉未能充分保护客户、员工和业务合作伙伴的数据而造成泄露。特斯拉可能面临被处以高达其年销售额4%的罚款&#xff0c;即32.6亿欧元&#xff08;约合人民币247亿元&#xff09;。 有特斯拉内部人士表示&#xff0c;泄露的数据包含超过1…

python项目之猜数字游戏

猜数字游戏 祝大家儿童节快乐&#xff01; 今天完成一个简单的猜数字游戏 规则部分&#xff1a; 1、利用0~9之间的数字考虑一个4位数字。同一数字可以多次使用。 2、孩子猜想出一个4位数字告诉家长。 3、家长根据孩子给出的数字计算出Hit分数和Blow分数&#xff0c;并计算结…

Linux教程——Linux和UNIX的关系及区别(详解版)

UNIX 与 Linux 之间的关系是一个很有意思的话题。在目前主流的服务器端操作系统中&#xff0c;UNIX 诞生于 20 世纪 60 年代末&#xff0c;Windows 诞生于 20 世纪 80 年代中期&#xff0c;Linux 诞生于 20 世纪 90 年代初&#xff0c;可以说 UNIX 是操作系统中的"老大哥&…

ipad做扩展屏方法

配置&#xff1a; win10系统电脑联想yoga AMD款&#xff08;注意注意注意&#xff01;&#xff01;&#xff01;&#xff01;&#xff09; 问题描述&#xff1a; 一开始是使用XDisplay去进行扩展&#xff0c;奈何不是闪退就是只能复制主屏幕&#xff0c;不能扩展&#xff01…

i5 13600kf配什么主板 显卡

i5-13600KF采用10工艺 14 核 20 线程&#xff0c;睿频 5.1GHz&#xff0c;三级缓存 24.00 MB基础功耗 125W&#xff0c;最大睿频功耗 181W i5 13600KF组装电脑怎么搭配更合适这些点很重要 http://www.adiannao.cn/du i5-13600KF支持目前支持Z690、Z790系列主板&#xff0c;本…

达人评测 iPad mini6怎么样 mini6参数配置

iPad mini 6依然是非全面屏&#xff0c;但会在外形尺寸不变的情况下&#xff0c;提高屏幕显示面积 。 iPad mini新品活动 888红包等你抢 机会不容错过http://iPad.adiannao.cn/7 这意味着mini6的屏幕边框相较之前缩窄&#xff0c;而屏幕分辨率可能是目前iPad 8或者Air 3所采用的…

ipad air 5参数配置

外观方面&#xff0c;iPad Air 5的外观会继续传承上一代4的设计&#xff0c;变化不会太大&#xff0c;直角边框和窄边框屏幕会保留。但并没有配备之前传闻的Face ID面部识别&#xff0c;依旧会采用电源键集合Touch ID的设计。 ipad air 5更多使用感受和评价&#xff1a;http://…

【电脑配置知识】显卡 GPU

1&#xff0c;显卡也是电脑的重要组成部分&#xff0c;承担着输出显示图形的任务&#xff0c;作用是协助CPU&#xff0c;提高整体的运行速度。比如我们玩游戏时&#xff0c;CPU负责计算怪物的血量&#xff0c;显卡负责渲染你和怪物打斗时的场景&#xff0c;这样既减轻了CPU的负…