How do I SCP a file from a RHEL linux box to another RHEL linux box without the password and without the username using URIs in Java using SCPClient? I know how to do a passwordless ssh, and I can SCP a file without the password, but I'm having trouble getting it to work without the username.
Here's my guess:
Source: file:///home/username/temp.txt
Destination: scp://@192.168.1.1:/home/username/