Bug when installing packet via ssh and password protected private key!

priority:low
cli
triaged

(Mannol) #1

Hi!

What I Wanted to Do & What Happened Instead

I wanted to install a package from a private repository and I used ssh install flavour to do so. I typed in the command and the install appeared to be hanged on rollbackFailedOptional step. However if I input my ssh key password, the install continues normally :rofl:

Reproduction Steps

# Generate ssh key. MAKE SURE YOU SET THE PASSWORD FOR THE KEY IN THIS STEP!
ssh-keygen -t rsa -b 4096 -C "example@example.com"
...
# Add the key to a github account
# Make some private repository (my-repo.git) with package.json and everything
# Try to install a package from that repository:
sudo npm i -g git+ssh://git@github.com/user/my-repo.git
# Output is something like: (it hangs here)
[..............] / rollbackFailedOptional: verb npm-session 1a57f08fg9bd69c8
# If you type your key password and press enter, the process continues...

Details

My guess is that the line, from ssh, asking for the password input is removed by the process indicator (rollbackFailedOptional info) line.

Platform Info

$ npm --versions
{ npm: '6.4.1',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.32.0',
  node: '8.12.0',
  openssl: '1.0.2p',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.2',
  v8: '6.2.414.66',
  zlib: '1.2.11' }
$ node -p process.platform
linux