跳至主要内容

博文

目前显示的是 二月, 2021的博文

How can I permanently add my SSH private key to Keychain so it is automatically available to ssh?

原文链接   On OSX, the native  ssh-add  client has a special argument to save the private key's passphrase in the OSX keychain, which means that your normal login will unlock it for use with ssh. On OSX Sierra and later, you also need to configure SSH to always use the keychain (see Step 2 below). Alternatively you can use a key without a passphrase, but if you prefer the security that's certainly acceptable with this workflow. Step 1 - Store the key in the keychain Just do this once: ssh-add -K ~/.ssh/[your-private-key] Enter your key passphrase, and you won't be asked for it again. (If you're on a pre-Sierra version of OSX, you're done, Step 2 is not required.) Step 2 - Configure SSH to always use the keychain It seems that OSX Sierra removed the convenient behavior of persisting your keys between logins, and the update to ssh no longer uses the keychain by default. Because of this, you will get prompted to enter the passphrase for a key after you upgrade, and again a...

宝塔面板+V2ray共存

 参考链接: 宝塔+V2RAY+WS+TLS, 充分利用VPS性能,富强与网站共存 宝塔面板+V2RAY,博客与V2RAY+Nginx+Ws+Tls共存 用宝塔面板实现WordPress+V2ray+ws+tls,网站和V2ray共存 宝塔面板+V2RAY,博客与V2RAY+Nginx+Ws+Tls共存 1)先安装宝塔面板,并添加网站,配置ssl,强制开启https; 2)安装v2ray,自动配置tsl选择N,否则会和宝塔有冲突,安装完成后编辑v2ray配置文件。 vi /etc/v2ray/config.json 删除当前所有内容,粘贴下面的内容: { "inbounds" : [{ "port" : 65432 , //此处为安装时生成的端口 "listen" : "127.0.0.1" , "protocol" : "vmess" , "settings" : { "clients" : [ { "id" : "xxxxxxxxx" , //此处为安装时生成的id "level" : 1 , "alterId" : 64 //此处为安装时生成的alterId } ] }, "streamSettings" : { "network" : "ws" , "wsSettings" : { "path" : "/blog" //此处为路径,需要和下面NGINX上面的路径配置一样 } } }], "outbounds" : [{ "protocol" : "...