linux遇到的问题及解决方法

本文解决了一系列与SSH连接、Linux软件安装及时间戳错误相关的问题,包括识别远程主机ID变化、SSH未识别服务、无法安装SSH服务器、时间戳在未来导致解压文件错误等问题的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. ssh remote host identification has changed [duplicate]
  2. solve: ssh-keygen -R hostname
  3. [ubuntu] ssh unrecognized service 
  4. solve: sudo apt-get purge openssh-server, apt-get install openssl-server
  5. [ubuntu] ssh connect to host port 22 connection refused 
  6. solve: apt-get install openssl-server
  7. Can not install openssh server

  8. slove: 更改/etc/apt/source.list 的http://ro.archive.ubuntu.com/ubuntu/,使之是一个有效的server,如deb http://us.archive.ubuntu.com/ubuntu/
  9.  

    linux中好多软件以d结尾,d代表什么?一般是daemon,指后台进程的意思。大部分这种程序应该是服务类型的程序。

  10. How to solve the time stamp is in the future error when you unpack a tar file on a system where the clock is behind the system clock on which you created the tar archiveIf you create a tar archive on system A and then try to unpack it on system B and system B's clock is behind that of system A then tar will complain.If you use the -m switch to tar then it will set all of the modified times on the unpacked files to the current system time.tar -xzmf archive.tar.gz
  11. Fix arrow keys that display A B C D on remote shell
  12. 1) Open Vim editor,
    2) Get the path of your home directory by typing :echo $HOME
    3) Check if you have .vimrc file in $HOME location,(if you don't have create it)
    4) Add the following line line to .vimrc file
       set nocompatible
            or
         set nocp
    When I tried to use arrow keys in insert mode in vi editor, it not working
    solved: vim ~/.vimrc Add this line to the top of the file: set nocompatible

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值