Esempio n. 1
0
        public void UnloadClientKeys(List <string> clientNames)
        {
            SshConnectionData sftpConnectionData = GetSftpConnectionData();

            foreach (string clientName in clientNames)
            {
                SshKeysManagement.UnloadKey(sftpConnectionData, clientName, settings.SshAuthorizedKeysPath);
            }
        }
Esempio n. 2
0
        public void SaveClientKeys(
            int portForwarding,
            string clientIdentity,
            string clientSshPublicKey)
        {
            // Saving Developer public key to allow its connection to the ssh server
            SshConnectionData sftpConnectionData = GetSftpConnectionData();

            SshKeysManagement.SaveKeys(
                sftpConnectionData,
                settings.SshUser,
                clientIdentity,
                clientSshPublicKey,
                settings.SshAuthorizedKeysPath,
                portForwarding
                );
        }