Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何向VPN服务端添加新的路由器 #9

Open
GoogleCodeExporter opened this issue Jul 11, 2015 · 2 comments
Open

如何向VPN服务端添加新的路由器 #9

GoogleCodeExporter opened this issue Jul 11, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

我在家里部署了一台Openwrt路由器,按照你的说明,Success.

然后,当我准备在 Office 部署另外一台Openwrt时,我将 
id_rsa.pub 中的密钥手工复制到服务端 authorized_keys 中, 
但不幸的是,我无法翻墙成功。

你的文档其中的步骤在此:生成密钥对并上传至服务器
. /etc/autovpn.conf
mkdir /root/.ssh

dropbearkey -t rsa -s 1024 -f $SSH_KEY|grep -v "Public key portion 
is:\|Fingerprint" >$SSH_KEY_PUB

cat /root/.ssh/id_rsa.pub |ssh -p $SSH_PORT root@$SSH_SERVER "mkdir ~/.ssh;cat 
>>~/.ssh/authorized_keys"

我想问的是,请问如何将新的路由器中的 id_rsa.pub 
密钥添加到VPN 服务端?


Original issue reported on code.google.com by e...@uceng.com on 3 Jun 2014 at 5:48

@GoogleCodeExporter
Copy link
Author

我仔细排查了一下,是因为 ipset 及 ipset-dns 
没有成功安装,我一一单独安装后,故障消失。

向 VPN 服务端添加新的路由器时,我执行以下步:  
. /etc/autovpn.conf
mkdir /root/.ssh

dropbearkey -t rsa -s 1024 -f $SSH_KEY|grep -v "Public key portion 
is:\|Fingerprint" >$SSH_KEY_PUB

手工复制 id_rsa.pub 中的密钥到服务端 authorized_keys 中, 成功。

你的AUTOVPN 太 COOL 了。感谢。


Original comment by e...@uceng.com on 4 Jun 2014 at 10:10

@GoogleCodeExporter
Copy link
Author

恭喜,脚本的通用性可能不够好。

Original comment by autovpn2014 on 4 Jun 2014 at 11:04

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant