sshj
sshj copied to clipboard
change remote port
Hi i want to connect via SFTP to a host that using another port than 22 how can i achieve this ?
@AmieJoni you can do it by:
SSHClient sshClient = new SSHClient();
sshClient.connect(host, port);