2026-05-11
Selecting...
Home Page
reload
Search in this channel...
Punch card
Raw Text (irssi format)
Fork on github
switch to admin mode
Jump to...
redirecting...
Log for
Ubuntu 台灣社群
pm 08:09:06
yun
我在 win10 要 ssh 到 linux server 上的時候,都會打 ssh user@ip
最近使用上了 ssh-keygen,讓登陸時不用輸入密碼
那要如何輸入類似自定義的名稱,像是直接打 user,取代打一長串的 ssh user@ip,就能夠連進去
請問這個叫什麼了呢?
pm 08:10:08
Pan 🍳
Fun fact: ssh 不指定名稱會使用和你電腦相同的主機名稱
pm 08:10:36
Pan 🍳
https://stackoverflow.com/questions/10197559/ssh-configuration-override-the-default-username
pm 08:10:52
Pan 🍳
然後最近正常了……
pm 08:39:35
Zen
ssh config?
pm 11:37:54
Richard Liu
alias myssh="ssh user@ip" 這樣?
不過 win10 ? 你是用 WSL ?
pm 11:50:47
Cute_ Panda 🐼 就業了,Still 窮。
ssh config 啊
pm 11:52:09
Cute_ Panda 🐼 就業了,Still 窮。
https://man.archlinux.org/man/core/openssh/ssh_config.5.en
pm 11:53:20
Fish Wang
我覺得不重要,你不考慮用windows terminal,然後直接把 ssh user@ip 寫進 profile 嗎,你就根本不用手打了
created by
mmis1000
and release under
MIT License
GitHub Repo