Any way to quickly paste a user password into an ssh session?
I work with a lot of cloud servers. I ssh into them using authorized keys, so I don’t have to type a password. But then I often have to sudo
commands, and that requires I type the current user’s password (that is, the password of the user on the remote machine).
The macOS terminal window title contains (among other things) <localuser> — ssh <remotehost>
or <localuser> — ssh <remoteuser>@<remotehost>
if a different user was used for the ssh session. 1Password should be able to extract that information to determine which user password to then paste into the terminal window when I sudo
something.
That would be awesome.
Note: with appropriate xterm configuration on the remote side, this would even work if I'm sudoed to another user on the remote host.
1Password Version: 7.5
Extension Version: Not Provided
OS Version: macOS 10.15
Sync Type: Not Provided
Comments
-
LOL it looks like this isn't the first time I've wanted this. But I'm 99% sure it's possible: https://discussions.agilebits.com/discussion/22007/feature-request-enter-password-into-terminal-app
0 -
Not sure that’s much easier than clicking on the password and pasting, What sucks is finding the password. I almost always have to search for it.
0 -
For your specific use case (terminal) could you use AppleScript along with the new 1Password CLI tool? I haven't tried it yet, and don't think it works with local vaults anyway.
I'm chiming in just because I'm also looking/hoping/suggesting 1Password put some efforts towards improving it's interaction in macOS outside of a web browser!
0 -
Oh! Yes probably! Thanks for pointing that out!
0 -
:+1: :)
0