• 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: 21117
85
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!