linux秘钥登入切换为密码登入
lantinglou 发布于 2022-07-16
echo root:YourPasswordHere |sudo chpasswd root sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i...
阅读(26)评论(0)赞 (0)
lantinglou 发布于 2022-07-16
echo root:YourPasswordHere |sudo chpasswd root sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i...
阅读(26)评论(0)赞 (0)
lantinglou 发布于 2022-07-15
1、nohup 将程序以忽略挂起信号的方式运行起来 补充说明 nohup命令 可以将程序以忽略挂起信号的方式运行起来,被运行的程序的输出信息将不会显示到终端。 无论是否将 nohup 命令的输出重定向到终端,输出都将附加到当前目录的 nohup.out 文件中。 如果当前目录的 ...
阅读(22)评论(0)赞 (0)
lantinglou 发布于 2022-07-12
plugins=(git extract z zsh-autosuggestions zsh-syntax-highlighting) zsh-autosuggestions 按tab键补全或者显示目录 还有一个 自动补全插件叫incr 也不错
阅读(24)评论(0)赞 (0)
lantinglou 发布于 2022-07-12
使用iTerm2 shell intergration进行文件传输(推荐) 其实一种最强大便捷的文件传输方式是使用 iTerm2 shell intergration。 安装iTerm2 shell intergration 安装非常简单,只需要先登录服务器端,执行如下命令: 选...
阅读(27)评论(0)赞 (0)
lantinglou 发布于 2022-07-11
方式一 新建一个shell文件,如ssh.sh #!/usr/bin/expect -f set user username set password password set host ip/domian set port 22 set timeout -1 spawn ssh...
阅读(28)评论(0)赞 (0)
lantinglou 发布于 2022-07-09
介绍 iTerm2 是一个MacOS 下的终端模拟器,和其他的终端本质上没啥大不同。但相对比自带那个终端它有更多的功能和更好的用户体验。 Zsh 全称是The Z shell. 是一个unix shell. 类似Bash, ksh 等。比原生shell 提供更多的功能。(Maco...
阅读(33)评论(0)赞 (0)
lantinglou 发布于 2022-03-03
https://www.bilibili.com/read/cv13866041
阅读(165)评论(0)赞 (0)
lantinglou 发布于 2022-02-13
# 机器A 允许转发 echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf sysctl -p # 机器A 建立GRE隧道 ip tunnel add tunnel1 mode gre local AIP remote BI...
阅读(84)评论(0)赞 (0)
lantinglou 发布于 2022-02-12
# 机器A 允许转发 echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf sysctl -p # 机器A 建立IPIP隧道 ip tunnel add tunnel1 mode ipip local AIP remote ...
阅读(121)评论(0)赞 (21)
lantinglou 发布于 2022-02-09
用路由器拨号,IPv6设置。首先联机类型要改成Native,接口:PPP、DHCP-PD和release prefix on exit都要开启。 安全设置里面将IPv6防火墙关闭 如果不能用记得看一下DNS 改为ipv6的。 测试地址 1.http://ipv6.ustb.edu...
阅读(33)评论(0)赞 (0)
最新评论