how to encript password in .netrc file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to encript password in .netrc file
# 1  
Old 06-13-2005
how to encript password in .netrc file

hi,

I am using .netrc file WITH OUT encripting the password

Code in .netrc file:
-------------------
machine $SYSTEM NAME login FTFOA001 password 1Q2W3E4R

how to encript password in .netrc file.(i should not use "1Q2W3E4R" as password).

after encripting i should able to connect with below code.
EX:ftp -i $SYSTEM NAME

Thanks
# 2  
Old 06-13-2005
I hope encrypt function is available in unix but not the decryption. You can try your own script to generate passwd from some other string.

hth.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Doubt in .netrc file for ftp login

Hi, i have a doubt. i am using .netrc file for login to a ftp server. ftp abc.ftp.com suppose i have 2 userid and password for the same server as shown below. which one is it going to read from the .netrc file? cat .netrc machine abc.ftp.com login admin1 password pass1 machine... (13 Replies)
Discussion started by: Little
13 Replies

2. Shell Programming and Scripting

How to use .netrc file and how to use it in script

How to use .netrc file and how to create and how can I use it with my script where I need to upload the file to ftp server.I can do it ftp script but my requirement is to us only .netrc file. I tried this way machine 172.00.xx.49 login svxxxx password paxxxx macdef init ... (0 Replies)
Discussion started by: anuragpgtgerman
0 Replies

3. UNIX for Dummies Questions & Answers

password protect a CSV file: better solution than ZIP password?

Hi We send *.csv with sensitive data to our customers. Our customers open those files with Excel. A new requirement is that we password protect those CSV files. I thought to pack them with ZIP and assign a password to the archive. But Solaris 10 can't encrypt ZIP files. $ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies

4. Shell Programming and Scripting

Encript Timestamp with blowfish

Good afternoon to you all I need help I need a script that will allow to encrypt the system´s timestamp; I have to use a pre-shared key to cipher the timestamp, so basically I need: 1st) cipher with a pre-shared key 2nd) encrypt the timestamp 3rd) encode on a base64 the output... (1 Reply)
Discussion started by: zarahel
1 Replies

5. UNIX for Dummies Questions & Answers

.netrc file

I had configured the .netrc file for automatic login to ftp however i am not clear how to give the port no after the "machine" token: as in, when i give machine xyz.com 2121 login <usid> password <pass> i am getting the error Unknown .netrc keyword 2121 while giving the command ftp xyz.com... (1 Reply)
Discussion started by: jithinravi
1 Replies

6. UNIX for Dummies Questions & Answers

.netrc file

hello, I am trying to write an automated script to transfer multiple files to another solaris 5.8 box. I am using the #! /bin/bash prompt and I am having trouble finding/creating the .netrc login file. I googled and the only info I got was that I should create/find it in my home directory. I went... (2 Replies)
Discussion started by: grandtheftander
2 Replies

7. Shell Programming and Scripting

how to encript a shell

I have a unix shell, there is a way to encript the whole shell, and be able to run the encripted shell, so I can give my client the encripted shell, and he can't see the code I wrote? (6 Replies)
Discussion started by: pedro_lezaeta
6 Replies

8. Shell Programming and Scripting

auto-connect with out .netrc file

Hi all, Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code ex: ftp -i <remote system name> from now i should NOT use .netrc file how can i login automativally with out asking userid and pqssword. note: i am working on... (1 Reply)
Discussion started by: getgopu25
1 Replies

9. UNIX for Advanced & Expert Users

netrc file encrypted password

Hi, I do not want the plaintext password to appear in the netrc file. So I want to encrypt the password. Is there a way to encrypt the password and still make ftp to use the netrc ? Thanks in advance. -Gow:confused: (2 Replies)
Discussion started by: ggowrish
2 Replies

10. UNIX for Dummies Questions & Answers

.netrc refuses password

Hi trying to ftp a printer to collect info but the ftp file shows that when it gets to password the mode is incorrect both the login and the password are not compulsory (e.g. if the user hits the enter button twice the ftp session is initiated) any ideas :confused: (6 Replies)
Discussion started by: w33man
6 Replies
Login or Register to Ask a Question