Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in uploading a file in ssh server : cannot connect  RSS feed

 
Prabes Suwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to upload a file to a ssh server in java. The server address, username and the password is correct but i am getting "Could not connect to SFTP server at "sftp://user:***@192.168.1.1/"." error.

Following is the code:



And the error is:



 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that there is an SFTP/SSH server running on that machine? What happens if you try connecting using a tool like WinSCP or FileZilla? The latter is also available for Linux or MacOS if you don't have Windows.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!