0
votes


I'm trying to log into PSFTP (Putty SFTP) and I'm able to login only using default username 'centos'. How do I login with different username?


C:\SMS\Putty>psftp sample (sample is the saved session in my putty which contains hostname and private key)
login as: centos
Remote working directory is /home/centos
psftp>

Connection is successful.

Now with different username(other than default i.e., centos) I'm getting below error.

C:\SMS\Putty>psftp sample
(sample is the saved session in my putty which contains hostname and private key)

Error:

Using username "ashuthi".
Server refused our key
Fatal: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

1
Welcome to Stack Overflow! Please move your question to Super User. It's off-topic here. - Martin Prikryl

1 Answers

1
votes

Presumably the two users have different private keys - are you sure ashuthi's private key is being used (and is correct)?