关于隧道如何理解 #230
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#230
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ssh -CNgv -L 19237:127.0.0.1:19237 root@gegion-45.autodl.pro -p 25684
如何理解上面这个命令?命令中127.0.0.1代表的是哪台机?左右的19327各代表谁的端口?比如oneapi容器部署在172.21.55.88主机上,我在172.21.55.88主机上执行这个命令后,我用哪个地址去访问访问gup服务器上的大模型服务【工作在默认的19237端口】呢?
-L 19237:127.0.0.1:19237:设置本地端口转发:
19237(第一个):本地计算机上的端口。
127.0.0.1:远程主机(gegion-45.autodl.pro)上的地址,表示它自己。
19237(第二个):远程主机上要连接的端口。
root@gegion-45.autodl.pro:远程主机的用户名和地址。
-p 25684:指定远程主机的SSH端口。
在你执行了这个命令之后(工作在默认的19237端口)使用http://127.0.0.1:19237访问大模型的服务