Disconnected: No supported authentication methods available (server sent: publickey)

Advertisement

Drew
Guest

Disconnected: No supported authentication methods available (server sent: publickey)

I'm trying to connect to a remote machine from the command line and keep getting this error:

Disconnected: No supported authentication methods available (server sent: publickey)

Using Windows 10

. 2016-07-12 10:48:29.423 --------------------------------------------------------------------------
. 2016-07-12 10:48:29.423 WinSCP Version 5.7.7 (Build 6257) (OS 10.0.10586 - Windows 10 Home)
. 2016-07-12 10:48:29.423 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2016-07-12 10:48:29.423 Log level: Normal
. 2016-07-12 10:48:29.423 Local account: WORK\Andrew
. 2016-07-12 10:48:29.423 Working directory: C:\Users\Andrew\PHD\Projects\Nectar
. 2016-07-12 10:48:29.423 Process ID: 7716
. 2016-07-12 10:48:29.423 Command-line: "C:\Users\Andrew\PHD\Projects\Nectar\WinSCP.exe" /console=577 /consoleinstance=_4632_713 "/log=logfile.txt"
. 2016-07-12 10:48:29.423 Time zone: Current: GMT+10, Standard: GMT+10 (AUS Eastern Standard Time), DST: GMT+11 (AUS Eastern Daylight Time), DST Start: 2/10/2016, DST End: 3/04/2016
. 2016-07-12 10:48:29.423 Login time: Tuesday, 12 July 2016 10:48:29 AM
. 2016-07-12 10:48:29.423 --------------------------------------------------------------------------
. 2016-07-12 10:48:29.423 Script: Retrospectively logging previous script records:
> 2016-07-12 10:48:29.423 Script: open sftp://ubuntu@144.6.228.83/home/ubuntu/
. 2016-07-12 10:48:29.423 --------------------------------------------------------------------------
. 2016-07-12 10:48:29.423 Session name: ubuntu@144.6.228.83 (Ad-Hoc site)
. 2016-07-12 10:48:29.423 Host name: 144.6.228.83 (Port: 22)
. 2016-07-12 10:48:29.423 User name: ubuntu (Password: No, Key file: No)
. 2016-07-12 10:48:29.423 Tunnel: No
. 2016-07-12 10:48:29.423 Transfer Protocol: SFTP
. 2016-07-12 10:48:29.423 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2016-07-12 10:48:29.423 Disable Nagle: No
. 2016-07-12 10:48:29.423 Proxy: none
. 2016-07-12 10:48:29.423 Send buffer: 262144
. 2016-07-12 10:48:29.423 SSH protocol version: 2; Compression: No
. 2016-07-12 10:48:29.423 Bypass authentication: No
. 2016-07-12 10:48:29.423 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2016-07-12 10:48:29.423 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2016-07-12 10:48:29.423 KEX: dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,rsa,WARN
. 2016-07-12 10:48:29.423 SSH Bugs: A,A,A,A,A,A,A,A,A,A,A,A
. 2016-07-12 10:48:29.423 Simple channel: Yes
. 2016-07-12 10:48:29.423 Return code variable: Autodetect; Lookup user groups: A
. 2016-07-12 10:48:29.423 Shell: default
. 2016-07-12 10:48:29.423 EOL: 0, UTF: 2
. 2016-07-12 10:48:29.423 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2016-07-12 10:48:29.423 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2016-07-12 10:48:29.423 SFTP Bugs: A,A
. 2016-07-12 10:48:29.423 SFTP Server: default
. 2016-07-12 10:48:29.423 Local directory: default, Remote directory: /home/ubuntu/, Update: Yes, Cache: Yes
. 2016-07-12 10:48:29.423 Cache directory changes: Yes, Permanent: Yes
. 2016-07-12 10:48:29.423 DST mode: 1
. 2016-07-12 10:48:29.423 --------------------------------------------------------------------------
. 2016-07-12 10:48:29.427 Looking up host "144.6.228.83"
. 2016-07-12 10:48:29.427 Connecting to 144.6.228.83 port 22
. 2016-07-12 10:48:29.570 Server version: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4
. 2016-07-12 10:48:29.571 Using SSH protocol version 2
. 2016-07-12 10:48:29.571 We claim version: SSH-2.0-WinSCP_release_5.7.7
. 2016-07-12 10:48:29.611 Doing Diffie-Hellman group exchange
. 2016-07-12 10:48:29.760 Doing Diffie-Hellman key exchange with hash SHA-256
. 2016-07-12 10:48:30.561 Verifying host key rsa2 0x10001,0xb12fbebad3003cef 0e245b5a92a469a1 ebf24aa8d26a320a 0b13aef97519dbf7 3f75f2a4ca90e071 5a4b66f98676f0dd 95788e4a6580bd0d 3b79681ba7369d45 afd3f38229197001 7de59ad1b0ace5eb d1a44c8afdc6a5e5 7f48a77ccdf97c60 0f49eb74ce098105 13d88a9af276155c 8b05dccb932ab411 dfdbc9e3b0dd30aa 1189e5c434cd7a61 89481904305ce47c 046a085dbed268c9 bdf806c519c04667 e32365cb1def7bc4 8ac6e765a4ad819c db6efe86d077fd8e 0a36d7dc0823d92e 8e1a72f73d6ac5ae 4da8c70b9f3a7bfd e5f59e625734f35c 414e544a0fee4dfc 51f56bd4de678f97 9ce5e53784a94b5d cdf9d8ed59280a3e 4a04e49ada030ebb with fingerprint ssh-rsa 2048 30:cb:ee:da:d1:47:be:d3:77:52:27:f0:6d:7e:87:53
. 2016-07-12 10:48:30.561 Host key matches cached key
. 2016-07-12 10:48:30.561 Host key fingerprint is:
. 2016-07-12 10:48:30.561 ssh-rsa 2048 30:cb:ee:da:d1:47:be:d3:77:52:27:f0:6d:7e:87:53
. 2016-07-12 10:48:30.561 Initialised AES-256 SDCTR client->server encryption
. 2016-07-12 10:48:30.561 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2016-07-12 10:48:30.561 Initialised AES-256 SDCTR server->client encryption
. 2016-07-12 10:48:30.561 Initialised HMAC-SHA-256 server->client MAC algorithm
! 2016-07-12 10:48:30.677 Using username "ubuntu".
. 2016-07-12 10:48:30.723 Disconnected: No supported authentication methods available (server sent: publickey)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

Re: Disconnected: No supported authentication methods available (server sent: publickey)

Your server supports public key authentication only, and you did not specify any private key to be used for authentication.

Reply with quote

Advertisement

You can post new topics in this forum