SSH login
I see many user posts referring to this article:
https://support.1password.com/ssh-logins/
But when I go there, I get a 404 error page.
How can I use 1Password to login to SSH via terminal?
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided
Referrer: forum-search:ssh
Comments
-
Hi @gregmtl,
Thanks for reporting this missing article. It's been removed and we haven't quite found a new home for it and similar information. Here's basically what it looked like:
You can add your SSH accounts to 1Password and launch Terminal automatically.
- Edit a Login item and set its website field to
ssh://user@hostname
. - Save the item, and the field becomes a link.
Click the link to launch your SSH session.
You can also launch those sessions from 1Password mini in addition to the main app.
Hope that's helpful. :)
0 - Edit a Login item and set its website field to
-
Thanks for the reply. I was able to find a solution using iTerm2 and sudolikeaboss. In case it helps anyone, here were my steps:
Install iTerm2
https://www.iterm2.com/downloads.htmlInstall sudolikeaboss
- Download beta version from here: https://github.com/ravenac95/sudolikeaboss/files/615148/sudolikeaboss_0.3.0-beta1_darwin_amd64.zip
- This is to avoid 1Password update error: https://github.com/ravenac95/sudolikeaboss/issues/29#issuecomment-263157412
- Copy "sudolikeaboss" into /usr/local/bin
- In terminal, type sudolikeaboss register
- 1Password will open up a window asking for a confirmation. Click to accept.
- Go to 1Password > Preferences > Advanced and uncheck "Verify browser code signature"
Add server to iTerm2
- In 1Password, add the server password and include sudolikeaboss://local as one of the URLs
- Go to iTerm2 > Preferences > Profiles
- Click + to add a new profile
- In the General tab, give it a name
- Select Command and enter the SSH login command
- Give a shortcut to launch that profile
- Go to the Keys tab, click + and choose the following:
- Keyboard Shortcut: ⌘\ (the usual 1Password shortcut)
- Action: Run Coprocess
- Enter the file path: /usr/local/bin/sudolikeaboss
Now when you load that profile in iTerm2 it will automatically enter your SSH command, and when you hit ⌘\ it will open the 1Password dialog for you to choose the password to enter.
0 -
Sudolikeaboss is definitely neat. It's not an officially supported solution from us though. Any issues encountered with it should be reported to that team.
Rick
0