ConnectPrivateKeySsh Method

<< Click to Display Table of Contents >>

Navigation:  SshNetIbmi Class > SshNetIbmi Methods >

ConnectPrivateKeySsh Method

Summary

Connect to IBM i SSH Server with User/Private SSH Key File.

 

Note: Private key file must start with following header text at the beginning of the file or SSH.Net may not recognize:

-----BEGIN RSA PRIVATE KEY-----

 

You can manually update the header in your private key file if needed to replace the first line text value. It should not affect the actual key.

 

Parameters

host - IBM i system host name or IP address

 

user - IBM i SSH user

 

privatekeyfilename - Private key file for SSH user

 

port - SSH port to use. Default=22

 

keepaliveintervalseconds - Send keepalive every xx seconds. Default=60

 

connectiontimeoutseconds - Set connection timeout in seconds. Default=3600 (1hr)

 

Returns

True=connected,False=not connected