Skip to content

Commit e9af0aa

Browse files
committed
chore: remove redundant public key check
1 parent 5d2930b commit e9af0aa

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/cli/ssh-key.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ async function addSSHKey(username: string, keyPath: string): Promise<void> {
3737
// Read the public key file
3838
const publicKey = fs.readFileSync(keyPath, 'utf8').trim();
3939
console.log('Read public key:', publicKey);
40-
41-
// Validate the key format
42-
if (!publicKey.startsWith('ssh-')) {
43-
console.error('Invalid SSH key format. The key should start with "ssh-"');
44-
process.exit(1);
45-
}
46-
4740
console.log('Making API request to:', `${API_BASE_URL}/api/v1/user/${username}/ssh-keys`);
4841

4942
// Make the API request

0 commit comments

Comments
 (0)