I have given below details of an SFTP server to login.
ipaddress, username, password, port(8800), password protected ppk file.
I tried the following command to login to server but unable to connect.(I expected giving password to the key after executing the command. And also I have password for both username and key).
sftp -i key.pem username@ipaddress -P8800
ssh: connect to host xx.xx.xx.xxx port 22: Connection timed out Couldn't read packet: Connection reset by peer
But I am able to telnet to server using below command.
telnet ipaddress 8800
How is it telnet working but sftp command not working? And how to pass port number in sftp command?