当前位置:网站首页>连接公司跳板机取别名
连接公司跳板机取别名
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
边栏推荐
- Wechat applet obtains login user information, openid and access_ token
- RobotFramework 之 用例标签机制
- Wechat applet input hidden and inoperable settings
- 全局变量能否放在头文件中定义
- Restful WebService和gSoap WebService的本质区别
- 帆软中单元格中隔行变色以及数量大于100字体变大变红设置
- Node接入支付宝开放平台的沙箱实现支付功能
- Check in system based on ibeacons
- DeepinV20安装Mariadb
- FBS(fman build system)打包
猜你喜欢
随机推荐
不同时间类型的执行计划计算
浅谈基于openssl的多级证书,Multi-level CA的签发和管理,以及双向认证
DeepinV20安装Mariadb
微信小程序setInterval定时函数使用详细教程
服务器日志分析工具(识别,提取,合并,统计异常信息)
程序编译调试学习记录
Can global variables be defined in header files
Yarn online dynamic resource tuning
Chapter 15 new technologies of software engineering
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
关于stream流,浅记一下------
容差分析相关的计算公式
微信小程序与低功耗蓝牙通信-往硬件端发送数据(三)
L2-024 tribe (25 points)
关于密匙传递的安全性和数字签名
修改ddt生成的测试用例名称
变长参数__VA_ARGS__ 和 写日志的宏定义
The latest development of fed digital currency
Record a strange bug: component copy after cache component jump
FBS(fman build system)打包