SSH login

Options
gregmtl
gregmtl
Community Member

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

  • sjk
    sjk
    1Password Alumni
    Options

    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.

      Configuring an SSH Login item

    You can also launch those sessions from 1Password mini in addition to the main app.

    Hope that's helpful. :)

  • gregmtl
    gregmtl
    Community Member
    Options

    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.html

    Install sudolikeaboss

    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.

  • 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

This discussion has been closed.