key_valid: Check if a provided SSH key is valid

Description Usage Arguments Details Value See Also

Description

checks if a provided SSH key is a valid for authentication on the SFTP server.

Usage

1
key_valid(ssh_key, url, username)

Arguments

ssh_key

Path to private SSH key for authentication (.ppk file).

url

a string giving the URL

username

a string giving the user name for authentication (equals the folder to be read out on the FTP server).

Details

This helper function checks if a provided private SSH key is a valid for authentication on the SFTP server by trying to read out the "user" folder file list.

Value

TRUE if authentication successful; FALSE if not.

See Also

Other helper functions: is_error()


jknappe/ubzutils documentation built on Sept. 1, 2020, 6:44 p.m.