当前位置: 首页 > news >正文

网站建设开发费用西安比较好的软件公司

网站建设开发费用,西安比较好的软件公司,手机网站开发库,做旅游门票网站需要什么材料#排查sshfs挂载失败的问题 写代码在Linux上运行,但是熟悉的IDE(比如VS code)在自己的电脑上,可以使用sshfs把linux上的目录挂载到本地,再用VScode打开即可,可以使用下面的命令: sshfs -odebug…

#排查sshfs挂载失败的问题

写代码在Linux上运行,但是熟悉的IDE(比如VS code)在自己的电脑上,可以使用sshfs把linux上的目录挂载到本地,再用VScode打开即可,可以使用下面的命令:

sshfs -odebug,sshfs_debug,loglevel=debug  -o rw,allow_other,uid=1190,gid=1190,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/Users/harlanc/.privateKey harlanc@192.168.23.2:/data1/workspace/mount/ffmpeg /Users/harlanc/workspace_ffmpeg

但是今天碰到一个问题,在别的CentOS机器上没问题,但是到192.168.23.2这台机器却连不上,报如下错误:

SSHFS version 2.5
FUSE library version: 2.9.9
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug> <-oServerAliveInterval=15> <-oServerAliveCountMax=3> <-oIdentityFile=/Users/    harlanc/.privateKey> <-2> <harlanc@192.168.23.2> <-s> <sftp>
debug1: Reading configuration data /Users/harlanc/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 192.168.23.2 [192.168.23.2] port 22.
debug1: Connection established.
debug1: identity file /Users/harlanc/.privateKey type -1
debug1: identity file /Users/harlanc/.privateKey-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.8
kex_exchange_identification: read: Connection reset by peer
Connection reset by 192.168.23.2 port 22
remote host has disconnected

服务端主动断开链接了,查看服务端的ssh服务:

[root@harlanc]# netstat -nltp | grep sshd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1085/sshd
tcp6       0      0 :::22                   :::*                    LISTEN      1085/sshd

在查看一下ssh进程的具体信息:

[root@ harlanc]# ps -ef | grep 1085
root        1085       1  0 15:39 ?        00:00:00 /usr/local/sbin/sshd -D[root@ harlanc]# rpm -qf /usr/local/sbin/sshd
***openssh-6.7.x86_64 //这里***是我们公司的名字

原来用的是我们公司自己的ssh服务。

而在可以连上的CentOS机器上,使用的是openssh这个开源ssh服务,把我们的服务替换成openssh不太现实,可以把openssh服务换一个端口启动起来:

 vim /etc/ssh/sshd_config

找到

 Port 22 

替换成

 Port 23

把openssh启动起来:

[root@ harlanc]# systemctl start sshd

这下两个服务都起来了:

[root@ harlanc]#  netstat -nltp | grep sshd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1085/sshd
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN      316299/sshd
tcp6       0      0 :::22                   :::*                    LISTEN      1085/sshd
tcp6       0      0 :::23                   :::*                    LISTEN      316299/sshd

使用sshfs挂载的时候指定一下端口:

 sshfs -p 23 -odebug,sshfs_debug,loglevel=debug  -o rw,allow_other,uid=1190,gid=1190,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3,IdentityFile=/Users/harlanc/.privateKey harlanc@192.168.23.2:/data1/workspace/mount/ffmpeg /Users/harlanc/workspace_ffmpeg

最后终于挂载上了。

 harlanc@APB ~ % df -h
Filesystem                                                        Size    Used   Avail Capacity iused ifree %iused  
harlanc@192.168.23.2:/data1/workspace/mount/ffmpeg   295Gi   237Gi    58Gi    81%    1.4M   18M    7%   /Users/harlanc/workspace_ffmpeg
http://www.yayakq.cn/news/853527/

相关文章:

  • 个人网站的设计与建设论文10大最佳免费建站软件推荐
  • 网站开发职能wordpress 置顶不重复
  • 营销型网站大全上海集团有限公司
  • 用dw做网站怎么换行wordpress 慢 google
  • 网站搭建实训总结网站建设百度资源
  • 企业网站建设 会计分录广州外贸网站建设公司价格
  • 邯郸住房和城乡建设局网站山西建站优化
  • 建设网站的风险6导视设计分析
  • 网站建设管理与维护wordpress文档
  • 企业类网站源码如何做360搜索网站
  • 摄影网站有哪些功能福州企业建站系统
  • 免费的网站有哪些平台网站上的图标怎么改
  • 大连建设网官方网站设置网站的黑名单怎么做
  • 网站建设自助建站制作购物网站建设的原理
  • 网站开发属于什么行业网站建设科目
  • 打开百度网站标题翻译为英文wordpress
  • 橙色在网站中的应用网络推广的具体方式
  • 所以免费爱做网站成立门户网站建设工作小组
  • 世纪城网站建设怎样给网站做流量
  • 电子商务网站设计的基本要求酷家乐设计家官网
  • 网站建设分析旅游网站怎么建设
  • 怎么查看网站主机商网站免费的
  • 国内网站备案如何让做网站
  • 设计英语海淀搜索引擎优化seo
  • 口碑好的秦皇岛网站建设哪家好哪些网站可以做产品推广
  • 创建团购网站做论坛网站能赚钱吗
  • 做响应式网站青岛论坛
  • 网站怎么做可留言功能什么是crm系统
  • 学校 网站 建设 目的wang域名注册网站
  • 企业网站营销如何建设线上销售平台有哪些