抱歉,您的浏览器无法访问本站

本页面需要浏览器支持(启用)JavaScript


了解详情 >

搬瓦工VPS 配置 ssh 登录 与 iphone 配置使用 openvpn

SSH 配置

ssh 登录搬瓦工机器

  1. stop server @Main controls
  2. Root password modification
  3. start Server
  4. Root shell - interactive
  5. vi /etc/ssh/sshd_config, add
1
2
PermitRootLogin yes
Port 22
  1. /etc/init.d/sshd restart
  2. ssh root@ip

OpenVpn 配置

  1. 在iOS设备上打开app store,搜索openvpn,install
  2. 打开 bandwagon my service pandel
    My Service Pandel -> KiwiVM Control Pandel -> OpenVPN Server -> install OpenVPN -> Download Key Files
  3. 把 ca.crt、client1.crt、client1.key 证书放入 .ovpn 配置文件

在 .ovpn 文件尾部中新增 标签 <ca>、<cert>、<key> 标签

1
2
3
4
5
6
7
8
9
ca.crt 文件内容复制到 <ca>和</ca> 的中间,
client1.crt 文件内容复制到 <cert>和</cert> 的中间,
client1.key 文件内容复制到 <key>和</key> 的中间,

修改完成后删除 .ovpn 配置文件中类似

ca ca.crt
cert client1.crt
key client1.key
  1. .ovpn 通过 Airdrop 传到 iphone 手机里
  2. 打开OpenVPN,点那些绿色加号,将配置文件导入
  3. 向右滑动最下面那个白色滑块至蓝色,连接服务器。
  4. 连接成功。如果显示 Connected,表示连接成功了。

Reference

Comments