I have a windows server which I also log into via putty. On the windows server, i have winscp with saved and working logins. From winscp > Generate Session URL, I can get a specific accounts login details (username, password, server, etc.). Now when i try to manually execute an sftp command from the putty session, i can get to the password part of the command but it wont accept the login. Here is the command I use on the command line:
sftp -oPort=00000 username@server
Why was the credentials working on winscp but not on the command line? How to make i work from the command line?
Snippet of verbose sftp logging:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/user/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
sftpuser@server's password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
sftpuser@server's password:
Also,
“PasswordAuthentication yes”
is commented in /etc/ssh_config and /etc/sshd_config in source server.