当前位置:网站首页>连接公司跳板机取别名
连接公司跳板机取别名
2022-04-23 14:04:00 【学海无涯乐做舟】
1.确认是否存在.bash_profile文件
创建该文件时一般都会选择在当前用户目录下,即Mac下的.bash_profile 文件的路径是 /Users/YourMacUserName/.bash_profilecd ~
可直接到/Users/YourMacUserName/目录下
查看是否有.bash_profile
文件
如果没有创建 touch .bash_profile
2.配置别名:
打开文件 vi .bash_profile 添加下面一行代码
alias st="ssh 企业邮箱名@relay01.mokahr.com -p 60022"
3.保存之后重新打开terminal或者执行
source ~/.bash_profile
打开Mac终端窗口输入st成功进入跳板机
版权声明
本文为[学海无涯乐做舟]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41918841/article/details/124326872
边栏推荐
猜你喜欢
Promtail + Loki + Grafana 日志监控系统搭建
RobotFramework 之 文件上传和下载
Basic knowledge learning record
程序编译调试学习记录
查询2013年到2021年的数据,只查询到2020的数据,遇到了这个问题所进行的解决办法
Universal template for scikit learn model construction
帆软中单元格中隔行变色以及数量大于100字体变大变红设置
室内外地图切换(室内基于ibeacons三点定位)
Intégration de Clusters CDH Phoenix basée sur la gestion cm
CDH cluster integration Phoenix based on CM management
随机推荐
Logging模块
快捷键(多行)
Can global variables be defined in header files
mysql新表,自增id长达20位,原因竟是......
switch使用(微信小程序)
Restful WebService和gSoap WebService的本质区别
基于ibeacons三点定位(微信小程序)
变长参数__VA_ARGS__ 和 写日志的宏定义
DDT+Excel进行接口测试
nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
生产环境——
烟雾传感器(mq-2)使用详细教程(基于树莓派3b+实现)
leetcode--357. Count the number of different figures
Choreographer full resolution
RobotFramework 之 用例执行
Three point positioning based on ibeacons (wechat applet)
STM32 learning record 0007 - new project (based on register version)
Idea控制台乱码解决
帆软实现分页时第一行和最后两行冻结方式
MySQL 修改主数据库