-
tinc异地组网使用实例
Mar 31, 2025
tinc是一个组建虚拟专用网络(VPN)的工具,通过隧道及加密技术在互联网上点与点之间创建专有网络。tinc 在网络层工作,因此无需对现有软件进行修改和配置。其数据通讯经过加密和压缩,能避免敏感数据和隐私的泄露。 …
-
使用Cloudflare Zero Trust实现网页登录SSH
Jan 23, 2025
首先登录https://one.dash.cloudflare.com/ 网络->Tunnels,创建隧道,隧道类型选择Cloudflared,隧道名自定义hhssh。 按照提示安装cloudflared并连接隧道,vps在这里选择debian,然后按照提示安装cloudflared并运行。 …
-
设置screen实现每次登录vps使用同一会话
Jan 22, 2025
首先安装screen apt install screen # or dnf install screnn # or pacman -S screen 新建.keepsession.sh脚本, vi ~/.keepsession.sh,内容如下 #!/bin/sh if screen -ls | grep -q "There is a screen on"; then screen -xRR else screen -S mysession fi chmod +x ~/.keepsession.sh添加执行权限,编辑~/.bashrc,添加以下内容: …
-
使用证书安全快捷的连接SSH服务
Jan 09, 2025
经常使用ssh连接服务器的朋友,有时为了安全可能ssh还使用了非默认端口(22),这样每次使用密码登录时,都得按照如下的命令来连接服务器。这样显得有点不方便,因此推荐将密码设置复杂难以回溯,然后使用证书的形式来登录ssh服务器,免去了每次使用密码的麻烦。只要你把证书妥善保管,就会安全如初。 …
-
GitHub端口22连接超时改用443端口连接
Jan 01, 2025
clone github仓库时老是提示22端口超时,如下: $ git clone [email protected]:xtod/yuwang.git Cloning into 'yuwang'... ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 还提示是否对该仓库具有访问权或者仓库是否存在,这不废话么,我肯定确认。 …
-
完全删除Docker
Aug 29, 2024
在使用了docker一段时间后,会发现系统上各种容器乱七八糟,启动的,未启动的,正常运行的,异常的,搞得人不胜其烦。 下面是一次完全删除docker容器并删除docker本身的实例,可以完美解决以上问题。 …
-
树莓派最新版系统开启SSH登录和设置默认用户
Jun 10, 2023
下载系统为Raspberry Pi OS Lite,信息如下: Release date: May 3rd 2023 System: 32-bit Kernel version: 6.1 Debian version: 11 (bullseye) 下载后使用balenaEtcher写入tf卡。 进入到bootfs分区,新建ssh空文件即可开启默认ssh登录。 …
-
使用gitolite自建git服务器
Jun 09, 2023
服务器环境如下: ➜ ~ neofetch `.::///+:/-. --///+//-:`` pi@raspi2b `+oooooooooooo: `+oooooooooooo: ---------- /oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 11 (bullseye) armv `+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 2 Model B Rev 1.1 `:oooooooo+`` `.oooooooo+- Kernel: 6.1.21-v7+ `:++ooo/. :+ooo+/.` Uptime: 1 hour, 53 mins ...` `.----.` ``.. Packages: 624 (dpkg) .::::-``:::::::::.`-:::-` Shell: zsh 5.8 -:::-` .:::::::-` `-:::- Terminal: /dev/pts/1 `::. `.--.` `` `.---.``.::` CPU: BCM2835 (4) @ 1.000GHz .::::::::` -::::::::` ` Memory: 70MiB / 921MiB .::` .:::::::::- `::::::::::``::. -:::` ::::::::::. ::::::::::.`:::- :::: -::::::::. `-:::::::: :::: -::- .-:::-.``....``.-::-. -::- .. `` .::::::::. `..`.. -:::-` -::::::::::` .:::::` :::::::` -::::::::::` :::::::. .::::::: -::::::::. :::::::: `-:::::` ..--.` ::::::. `...` `...--..` `...` .:::::::::: `.-::::-` 添加git用户 服务器添加git用户并设置密码 …
stuffdebianraspissh树莓派bullseyeraspbianopensslgitgitoliteed25519
-
网络文件系统SSHFS使用实例
Sep 26, 2020
什么是SSHFS? SSHFS是一个通过SSH连接到服务器的网络文件系统客户端。 SSHFS允许您使用SFTP挂载远程文件系统。 大多数VPS SSH服务器默认情况下都支持并启用此SFTP访问,因此SSHFS使用非常简单,无需在服务器端执行任何操作。 …
-
UbuntuTouch更换国内源
Aug 04, 2019
在一加3T上安装完UbuntuTouch后,参考此文开启SSH登录。 接下来就是更换软件源了,国内推荐USTC和清华大学开源镜像。 通过vi /etc/apt/sources.list 编辑软件源,然后在vi中通过以下命令进行替换操作: :%s/ports.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g 保存后即可。