💻Terminal ToolsDEV CommunityContent type: Blog

Auto-supplying SSH passwords without sshpass: the SSH_ASKPASS trick (opens in new tab)

I built sshelf, a terminal UI for managing SSH hosts. Save each host once (key, port, jump hosts, tags), then fuzzy-search and hit Enter to connect. This post is about the two design decisions people ask about most: why it never touches ~/.ssh/config, and how it auto-fills passwords without sshpass. Why I didn't build on ~/.ssh/config Every SSH manager I tried was a frontend over ~/.ssh/config: it either read the file or, worse, rewrote it. That file is shared state. Ansible reads it. IDEs re...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help