https://www.gravatar.com/avatar/5f48da38e786436afece6f2e46196202?s=240&d=mp

Linux Shell

如何将公钥限制为仅sftp登录

起因

最近有个权限控制的需求,需要允许同事通过SFTP软件上传和下载文件,不允许他登录到服务器;因为涉及到程序运行权限的问题,不能另外开一个用户,只能使用当前用户来上传。查阅 ssh 帮助文档,看到参数: SSH_ORIGINAL_COMMAND 可以很简单的解决这个问题

怎样将 FRP 安装为系统服务

简介

frp 是一个可用于内网穿透的高性能的反向代理开源应用,支持 tcp, udp 协议,为 http 和 https 应用协议提供了额外的能力,且尝试性支持了点对点穿透。

https://statics.lshell.com//images/architecture.png

交学费

https://statics.lshell.com/2020/domain.jpg

前段时间从V站上得知了 万网预订 预订域名注册失败订金原路退回,开始了自己的白嫖之路,虽然一直没有注册成功过,但是也说明我眼光挺好的,看上的域名都是有一定热度的~

How to config proxy for ansible

https://statics.lshell.com/logo/Ansible_logo.png

On our server, we need to configure ansible proxy to manage some servers。

We know that the ssh client configures the proxy in this way.

cat ~/.ssh/config 

Host *  
    User archly  
    StrictHostKeyChecking no  
    TCPKeepAlive yes  
    ConnectTimeout 10  
    Port 22  
    ServerAliveInterval 60  
      # socket 5  
      # ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p  
      # https  
    ProxyCommand nc -X connect -x 127.0.0.1:1081 %h %p

Then, in _/etc/ansible/ansible.cfg _, we can find this: