The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Delete and copy file(s) slowly(!?) trantuananh24hg SUN Solaris 5 02-21-2008 08:00 PM
How to copy to server & delete locally? mokgonec Shell Programming and Scripting 3 06-28-2007 02:16 AM
Unzip, copy, and delete loop spyne Shell Programming and Scripting 3 03-07-2007 10:30 AM
unable to delete file for permission problem sabyasm UNIX for Dummies Questions & Answers 4 02-26-2006 05:55 PM
copy files from local drive to telnet unix machine. gary UNIX for Dummies Questions & Answers 4 05-24-2001 01:24 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-09-2002
Registered User
 

Join Date: Jan 2002
Location: Australia
Posts: 16
Talking Telnet and file Copy/Delete Problem

Hi there....I'm new for the UNIX...

just wondering if there is any method that can telnet to a server without typing the userID and PWD each time...
that is any command or scripts that allows me to enter the server directly?

also...after i enter the server...
i want to get some files then remove them...
how's that can be done?

thanks if anyone can give some help~~!!

Cheers.
Forum Sponsor
  #2  
Old 01-09-2002
shaik786
Guest
 

Posts: n/a
Why do u want to telnet to another server if you wish to get/delete some files? use ftp instead.

Here's a clue: $HOME/.netrc. See the man pages on netrc. This will help you in your desired task.

You would also like to see the man pages of rsh
  #3  
Old 01-09-2002
Registered User
 

Join Date: Oct 2001
Location: Bangalore
Posts: 93
I agree with Shaik. Just to add, if you still want to login to a remote M/C without using a password, then you can use rlogin.
But in that case all you need to do is create a .hosts file in the remote M/C and put your login name there.
But this is a security risk.

lemme tell you that .netrc doesnt takes encryted passwords and its a normal text file. So, anyone can see your password. So, select your priorities accordingly.
  #4  
Old 01-09-2002
Registered User
 

Join Date: Jan 2002
Location: Australia
Posts: 16
i create a file ".netrc" in my user/bin/
says the netrc file have this:

machine apple login lemon password orange

when i try to ftp apple
it will require for login and password...anything i did wrong?
  #5  
Old 01-10-2002
shaik786
Guest
 

Posts: n/a
Here's a sample $HOME/.netrc file:
Code:
             machine other_host
             login user123
             password password123
             macdef init
                          hash
                          prompt
                          mget /users/shaik/*.c
                          mdel /users/shaik/*.c
                          bye
Note the blank line at the end of .netrc
Also, the permissions of this file should be set to 600
  #6  
Old 01-10-2002
Registered User
 

Join Date: Jan 2002
Location: Australia
Posts: 16
My Macro part doesn't work...
if i typed pwd
i will get

/usr/biglemon

so i put this in the .netrc file
macdef
hash
prompt
mget /usr/biglemon/*
mdel /usr/biglemon/*
bye



i thought this would get all the files from the /usr/biglemon
to my current dir...
but nothing happen....
just wondering why...

Thank you....

Last edited by biglemon; 01-10-2002 at 12:45 AM.
  #7  
Old 01-10-2002
shaik786
Guest
 

Posts: n/a
You missed the init after your macdef. Should be like:

macdef init

Hope this works out!
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0