Add an Identity to create a session with
Set the known hosts before establishing a connection. Run this command to find the value for a host, ssh-keyscan -H -t rsa MY_SSH_HOST.COM
Helper to retrieve the known hosts entry This is the same as the following code segment:
return session(
session => session.config("StrictHostKeyChecking", "no"),
session => session.knownHostsEntry();
});
Creates a jsch session with given username/password. Same as calling session(session => {}, afterConnect)
A callback function that is called after the connection is established so that you can perform any operations.
Creates a jsch session with given username/password.
A callback function that is called before the connection is established so that you can set any additional configurations.
A callback function that is called after the connection is established so that you can perform any operations.
Used to intitiate SSH and SFTP connections.
Example: ```javascript
B.io.jsch("sftp.myassn.com") .knownHosts("sftp.myassn.com ecdsa-sha2-nistp256 some-very-long-key") .username("sftpuser") .password("test") .session(session => { session.sftpClient(clientSession => { O += clientSession.ls("."); }) });