当前位置:网站首页>【经验】通过跳板机远程连接内网服务器的相关配置
【经验】通过跳板机远程连接内网服务器的相关配置
2022-07-29 05:27:00 【吃吃今天努力学习了吗】
实验室的跳板机换了,放假回家前当然要先把远程服务器配置好啦。
已知:
跳板机的ip、用户名、端口和私钥(或者密码);
服务器的ip、用户名、端口和密码
操作步骤:
- 更改配置文件
修改~/.ssh/config文件。
这里要配置好跳板机和服务器。
格式如图所示,Host + 名称,下面几行跟需要的属性。
如果是使用秘钥,就加上IdentityFile 秘钥地址。这样的话可以不同的机器用不同的秘钥,只要把id_rsa重命名,在这里写好路径即可。
服务器如果要使用跳板机连接,就再额外加上一句 ProxyCommand ssh 跳板机名称 -W %h:%p。
- 远程连接
- 打开命令行,简单的
ssh 服务器名就可以连上啦。 - 使用远程工具连接,好处是不需要每次输入密码。我在Windows上使用的是 MobaXterm(文件夹列表非常好用,可以直接上传下载文件),macOS上使用的是 Royal TSX(需要再下载一个XQuartz来满足一些界面的可视化)。
A u t h o r : C h i e r Author: Chier Author:Chier
边栏推荐
猜你喜欢

Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types

Complex floating point division of vivado IP core floating point

为什么5G N2接口控制面使用SCTP协议?

Recurrent neural network RNN

Condition 条件对象源码浅读

Online multiplayer chat room based on UDP communication

8、 Network security

如何在开发板上使用sftp命令访问sftp-server

Hongke automation SoftPLC | modk operation environment and construction steps (1) -- Introduction to operation environment

TCP based online dictionary
随机推荐
OpenResty的核心与cosocket
Solution for website being suspended
Loss function -- cross entropy loss function
FIR filter design (2) -- vivado calls IP core to design FIR filter
基于Matlab解决线性规划问题
Floating point multiplication and division of vivado IP core floating point
Design of IIR filter based on FPGA
如何在开发板上使用sftp命令访问sftp-server
Recurrent neural network RNN
day03_2_作业
Biased lock, lightweight lock test tool class level related commands
Joint use skills of joiner.on and stream().Map
TCP based online dictionary
FIR filter design (1) -- using the FDATool toolbox of MATLAB to design FIR filter parameters
Best example of amortized cost
【面试题】2022年最新软件测试面试题(400道)【附带答案】持续更新...
How to pre circumvent the vulnerabilities of unsafe third-party components?
FPGA - odd even frequency division and decimal frequency division code routine
Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
Ultra low cost DDoS attacks are coming. See how WAF protects Jedi