Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows equivalent of file .netrc on Unix?

Tags:

unix

windows

ftp

On Unix, we can specify the ftp username/password in ~/.netrc file and next time onwards, there is no need to specify username/password while ftping to any machine provided the credentials for that machine exists in ~/.netrc file.

It's very helpful especially if you need to login to multiple machines may times lets say for monitoring purposes.

Can any one please suggest if there is any equivalent of this on Windows?

like image 664
Naga Kiran Avatar asked Jan 24 '23 18:01

Naga Kiran


1 Answers

If you can get away from FTP and use SFTP instead, then you can use public key authentication and store your public key (found at ~/.ssh/id_rsa.pub) on the server in ~/.ssh/authorized_keys.

like image 75
Sophie Alpert Avatar answered Jan 26 '23 10:01

Sophie Alpert