System info

uzair@zaidi:~/Desktop/tftpboot$ uname -a
Linux zaidi 3.11.0-20-generic #35~precise1-Ubuntu SMP Fri May 2 21:35:48 UTC 2014 i686 i686 i386 GNU/Linux

I get this error when using sftp:

#sftp zaidi@ 
zaidi@'s password: 
Permission denied, please try again.
zaidi@'s password: 

even if enter correct password(of root)

  • 2
    What does auth.log say? – Mikel May 20 '14 at 13:46
  • 4
    It might be a typo in the title of your question, but you do realize that sftp is not a tftp client? They're different protocols. – HBruijn May 20 '14 at 14:00
  • Wait, what? sftp is for ssh, not tftp. You're using the wrong client. – Mikel May 20 '14 at 14:00

FTP, SFTP and TFTP are different protocols (as is the lesser-used FTPS, not to mention FTP over SSH). sftp is a client for the SFTP protocol, which operates over SSH. Evidently, you aren't authenticating correctly to the SSH server on, presumably because you're using TFTP credentials.

To use the TFTP protocol, use the tftp command. A TFPT server must be running. TFTP has no authentication, just specify the host name or IP address.

If you did mean to use SSH, make sure to enter the correct password — of the zaidi user, not of root, since you're specifying zaidi for the user name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.