sshj icon indicating copy to clipboard operation
sshj copied to clipboard

change remote port

Open AmieJoni opened this issue 4 years ago • 1 comments

Hi i want to connect via SFTP to a host that using another port than 22 how can i achieve this ?

AmieJoni avatar Nov 24 '20 18:11 AmieJoni

@AmieJoni you can do it by:

SSHClient sshClient = new SSHClient();
sshClient.connect(host, port);

mkorszun avatar Dec 04 '20 17:12 mkorszun