Install and Config SSH Connection
1. Install SSHIt is very easy, I strongly recommend you install it on Linux or WSL(Windows Subsystem for Linux), I will record how to install WSL at: How to install WSL . And I will give you my reasons Why Stop Coding on Windows. Almost all Released Versions of Linux have already installed SSH, but if you find there is no SSH for you computer, just install it from apt. 1sudo apt install openssh-server Check status of ssh: 1sudo systemctl status ssh If you find result below, you are...
What is Bandwidth
云服务器带宽和流量的区别云服务器的带宽配置主要分为两种描述方式:带宽上限 和 流量上限。以下是它们的详细介绍和对比。 1. 带宽上限(如 4Mbps)含义带宽表示服务器与网络连接的速率上限,单位通常为 Mbps 或 Gbps。 示例:4Mbps 表示每秒最多传输 4 兆位数据,实际速率约为 0.5 MB/s。 适用场景限制峰值流量:控制服务器的峰值速率,适合需要稳定网络连接的场景。 持续传输数据:如 HTTP 服务、流媒体等需要长时间稳定传输的应用。 常见原因固定速率分配:云厂商为入门级套餐设定的固定带宽。 按峰值带宽收费:更便于用户管理成本。 计算预估流量假设每天持续使用 4Mbps 带宽,可计算月流量: 1月流量 = 4 Mbps × 3600 秒/小时 × 24 小时/天 × 30 天 ÷ 8 结果约为 1.3TB/月。 2. 流量上限(如 2TB)含义流量上限是指每月可传输的数据总量(上传+下载),但不限制速率。 适用场景弹性使用:突发性流量需求高,例如大文件下载、CDN...
Run the command in the background
IntroductionSometimes, you really need those server-wide program to run in background, because you need to avoid some accidents to interrupt our service program. There are some methods I will introduce here: 1. tmux: tmux new -s [tty-name]: start a new tty window with your set name tmux attach -t [tty-name]: attach a existing tmux tty with name crtl + b and then d: exit tmux tty but keep it in background LATER but this command or we call it shortcut sometimes don’t work, if I find the...
Synchronize Folder with Syncthing
IntroductionSyncthing is a famous open-source app which can help us synchronize shared folders through different platforms including windows, MacOS and Linux. For more details, you can access official website InstallWindowsIt is very simple to install on windows, just download it from github After installed, there will be a desktop shortcut Syncthing Configuration Page Click that shortcut, your browser will open a config page. LinuxFor more details, you can access official guidance 1....
Why do you think the English Tenses is so confused?
时间&状态未分清学校教授时态时,往往是将时间和状态混合在一起教,导致学生对时态仅有一个模糊的整体概念。或者即使区分,也并不特别指出。这就导致很多人脑种的时态概念是这样的: 这解释了为什么在学校学到的英语会强行加入很多语法规则,什么时候必须用一般将来,什么时候用过去将来完成时等等。规则复杂没有统一的规律绝对是大多数人在学习英语时被劝退的头号通缉犯。但是如果你问Native English Speakers,他们会说根本不知道什么是时态,就是怎么自然怎么说。 因此,我们需要知道时间和状态其实是两个概念,而完整的时态是由时间和状态排列组合而成的。 动词变位(Verb Conjugation)单词拼写往往会改变。 在中文里表达时间概念时,只需要加上对应的时间相关的描述词即可,不需要对字本省做出任何改动,比如: 我已经吃过饭了 我正在跑步 但是在英文中,我们不仅需要加上对应的时间相关的描述词,还需要对动词本身的拼写做出改变, 比如: I ate an apple. (时态变位) She eats an apple. (人称变位) I have eaten an apple....
How to use OpenVPN
OpenVPN ServerInstall OpenVPN ServerWindows1. Download setup programOpenVPN Client Download for Windows 2. Install OpenVPNRemember click Customize instead of Install Now Click OpenVPN -> OpenVPN Service -> Entire feature will be installed on local hard drive; ClickOpenSSL Utilities -> EasyRSA 3 Certificate Management Scripts -> Entire feature will be installed on local hard drive 3. Config ServerEnter default setup directory, and then enter the Easy-RSA 3 Shell 12cd...
How to manage SSH key pair
1. Generate SSH key12ssh-keygen -t rsa -b 4096 -C "[email protected]"ssh-keygen -t ed25519 -C "[email protected]" ssh-keygen: SSH-Keygen 参数详解ssh-keygen 是一个生成、管理和转换 SSH 密钥的工具。以下是其主要参数的详细讲解: 常用参数 -t type 指定生成密钥的类型: - rsa:生成 RSA 密钥(默认 2048 位)。 - dsa:生成 DSA 密钥(已不推荐使用)。 - ecdsa:生成 ECDSA 密钥(推荐用于更高安全性和性能)。 - ed25519:生成 Ed25519 密钥(最推荐,现代加密方法,性能好且安全)。 - rsa1:生成 SSH 协议 1 的 RSA 密钥(极不推荐,已弃用)。 -b bits 指定密钥的位数: - RSA 密钥默认 2048 位,建议使用 3072 或 4096 位以提高安全性。 - Ed25519...
Get SSL Certificates
1. Apply certificate via ACME2. Apply certificate via ACME integrated by 3X-UI2.1. Install 3X-UIRun bash script: 1bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) 2.2. Select SSL Certificate Management1$ x-ui 2.3. Select Get SSL input your urland wait for finish2.4. Check your certificate
How to set network proxy for Docker
Sometimes, you may encounter network problems, at this time, you need set proxy through daemon file of docker. Daemon ConfigThe config file of docker located at: /etc/docker/daemon.json If the config file doesn’t exit, you should create one. And past the content below to the config file. 1234567{ "proxies": { "http-proxy": "http://proxy.example.com:3128", "https-proxy": "https://proxy.example.com:3129", ...
Establish SSH connection through SOCKS5 proxy
1. IntroductionAs we all know, sometimes, it’s hard for us to connect our remote server directly or the connection is not stable, we have to conduct some method to access our remote server. 2. Method2.1. Using some 3rd party applicationFinalShell: We can set proxy directly 2.2. WindowsIt’s not friendly to Windows TODO 2.3. LinuxWe can use nc and ssh itself to proxy ssh trafic. 1ssh -o "ProxyCommand=nc -x socks_proxy_host:socks_proxy_port %h %p"...