TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

SSH shortcuts through Bash aliases on Ubuntu

1 点作者 codepunker超过 10 年前

1 comment

mooism2超过 10 年前
1. Add an entry to ~&#x2F;.ssh&#x2F;config instead of adding a bash alias: it works with scp&#x2F;sftp as well as ssh.<p>e.g.<p><pre><code> Host dev Port 22222 IdentityFile ~&#x2F;.ssh&#x2F;icantreadwhatyourprivatekeyfilescalled User dev HostName dev.web3box.com </code></pre> --- then ssh dev logs you into your dev box.<p>Read man ssh_config.<p>2. Why in the world are you running sudo? Even if you are logging in as root on the remote server, sudo only has an affect on the local machine.
评论 #8221362 未加载