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

官方文档 私密代理 章节存在错误 #424

Closed
sfqpublic opened this issue Feb 28, 2020 · 0 comments
Closed

官方文档 私密代理 章节存在错误 #424

sfqpublic opened this issue Feb 28, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@sfqpublic
Copy link

文档地址
以下是文档内容:
假设场景: 无需新增多的端口实现访问内网服务器10.1.50.2的22端口

使用步骤

在刚才创建的客户端中添加一条私密代理,并设置唯一密钥secrettest和内网目标10.1.50.2:22
在需要连接ssh的机器上以执行命令
./npc -server=1.1.1.1:8024 -vkey=vkey -type=tcp -password=secrettest -local_type=secret

如需指定本地端口可加参数-local_port=xx,默认为2000

注意: password为web管理上添加的唯一密钥,具体命令可查看web管理上的命令提示

假设10.1.50.2用户名为root,现在执行ssh -p 2000 [email protected]即可访问ssh
加粗的这句话,让人觉得应该访问服务器的2000端口,因为npc -server=1.1.1.1:8024,1.1.1.1是服务器的地址。实际上应该是访问本机的2000端口。也就是应该使用命令ssh -p 2000 [email protected]

@sfqpublic sfqpublic added the bug Something isn't working label Feb 28, 2020
kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant