当前位置:网站首页>【经验】通过跳板机远程连接内网服务器的相关配置
【经验】通过跳板机远程连接内网服务器的相关配置
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
边栏推荐
- NLP word segmentation
- 软件包设置成——>YUM源
- Recurrent neural network RNN
- Right value reference and mobile construction
- 失效的访问控制
- Complex floating point multiplication of vivado IP core floating point
- What is the basic principle of Library collision and library collision attack
- IPv6表示方法与配置案例
- MySQL 事物四种隔离级别分析
- DDoS details
猜你喜欢

day12_多线程

Embedding理解+代码

3、 Wide area communication network

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

华为交换机CE12808导入导出配置文件

Complex floating point multiplication of vivado IP core floating point

Network Security Learning (II)

Floating point addition and subtraction method of vivado IP core floating point

Merkletree builds QT implementation UI

比较单片机3种时钟电路方案
随机推荐
'function vtable for error: undefined reference to ... ' 问题的原因及解决方法
Recurrent neural network RNN
偏向锁、轻量级锁测试工具类级相关命令
How to pre circumvent the vulnerabilities of unsafe third-party components?
软件定义边界SDP
循环神经网络RNN
Computer right mouse click always turn around what's going on
Design and simulation code of 4-bit subtracter based on FPGA
Ram block memory generator of vivado IP core
NLP word segmentation
Hongke share | FPGA implementation of pass through and store and forward switching delay
MQTT服务器搭建以及使用MQTT.fx测试
The performance and viewing methods of websites attacked by DDoS
What is DNS amplification attack
Hongke shares | how to test and verify complex FPGA designs (1) -- entity or block oriented simulation
Condition 条件对象源码浅读
Online multiplayer chat room based on UDP communication
为什么5G N2接口控制面使用SCTP协议?
会话推荐中的价格偏好和兴趣偏好共同建模-论文泛读
What is the basic principle of Library collision and library collision attack