amoussard / sftp-deployment

Spend less time managing file transfers and more time coding. SFTP support for Atom.io to send and receive files directly in your server.
MIT License
76 stars 44 forks source link

[SFTP protocol with private key] Cannot established connection : invalid username #78

Open hieutrtr opened 9 years ago

hieutrtr commented 9 years ago

There's an issue when i use sftp-deployment. { "type": "sftp", "host": "dragon", "user": "trunghieu", "port": "22", "remotePath": "/home/trunghieu/phpamqp_consumers/event_worker", "sshKeyFile": "~/.ssh/id_rsa", "uploadOnSave": true }

--> Cannot established connection : invalid username

my username is trunghieu on my dragon host. i alway use ssh trunghieu@dragon to connect this host everytime.

Cipa commented 8 years ago

Same here, used to work but now I get Cannot established connection : invalid username

{ "type": "sftp", "host": "a.server", "user": "an.user", "password": "a.pass", "port": "22", "remote_path": "a.path" }

KimTheFirst commented 8 years ago

Chucking my comment in here - same exact issue for me, username is valid.

amoussard commented 8 years ago

Hi all,

The documentation was outdated. You must use "username" in configuration file to make it work.

Thank your for using the package.