auto-connect with out .netrc file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting auto-connect with out .netrc file
# 1  
Old 06-10-2005
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 solarish machine

i want similary any otnher method
ex: ftp userid/password@remot system name.
# 2  
Old 06-10-2005
ftp -n Suppresses auto-login upon initial connection.
e.g.
Code:
ftp -nvi $server <<EOF
user $user $password
cd $directory
put $filename
bye
EOF

Login or Register to Ask a Question

Previous Thread | Next Thread

9 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

SSH HELP how to connect auto?

hi, i have some servers on my network. i need to connect to them auto from my work station sith SSH. i need to write a script thet connects to the server with USERNAME and PASSWORD automticly. and on each server to kill process. in my sciprt i want to put all list the IP of my... (1 Reply)
Discussion started by: zigizag
1 Replies

3. 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

4. Shell Programming and Scripting

VPNC auto connect shell script

I need a script which connects to vpn (asks for password) then when its connected starts a terminal connection to a specified ip address. Can somebody help me with this please? Thank you in advance (0 Replies)
Discussion started by: dsax64
0 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 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... (1 Reply)
Discussion started by: getgopu25
1 Replies

8. UNIX for Dummies Questions & Answers

Help in .netrc

Hi, I would like to ask if the .netrc file should really be stored/placed in the /home/<userid> directory or in the home directory indicated by the uinfo command? I am currently having problems with a .netrc file which is owned by a id which has it's home directory pointed to a... (2 Replies)
Discussion started by: edu_escandor
2 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
Login or Register to Ask a Question