Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-30-2006, 08:45 PM
|
#1
|
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Rep:
|
.netrc
I created a .netrc file in following manner. and placed it in /home/<user>
machine <machine_name> login <username> password <password>
now when i run ftp command with this machine name, it does not login automatically, whereas it should.
ftp <machine_name>
asks for username and password.
|
|
|
|
12-01-2006, 12:22 AM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,902
|
Hmmm ... works here. Does the machine name match the
actual hostname?
Cheers,
Tink
Last edited by Tinkster; 12-01-2006 at 12:24 AM.
|
|
|
|
12-01-2006, 02:30 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2006
Location: UK
Distribution: Slackware
Posts: 7
Rep: 
|
Most FTP clients require that .netrc should be readable only by the owner. So try:
chmod 600 .netrc
|
|
|
|
12-01-2006, 04:38 AM
|
#4
|
|
Member
Registered: Aug 2005
Distribution: Slackware 12
Posts: 106
Original Poster
Rep:
|
great, it works now, the mode was the problem.
|
|
|
|
12-01-2006, 10:40 PM
|
#5
|
|
Member
Registered: Apr 2005
Location: Sweden
Distribution: Debian
Posts: 142
Rep:
|
I know that this is not what you asked about, but.
If possible, do not use FTP, use SCP (file copy with SHH-protocol). FTP transfers your login and password in clear text, for anyone to read that can with etherial or other tools. SCP (and SSH) crypt all your trafic, inluding user name and passwords.
And never store passwords in text files...
Yours
|
|
|
|
12-04-2006, 06:02 PM
|
#6
|
|
LQ Newbie
Registered: Nov 2006
Location: Sydney, AU
Distribution: OSX 10.5.6 and Slackware 12.2
Posts: 9
Rep:
|
it's easy to setup password less logins for ssh based file transfer (scp/sftp).
Create the keys: ssh-keygen -t rsa
Copy key to destination: scp .ssh/id_rsa.pub user@othermachine:
ssh to remote machine and add pub key to keys file: cat id_rsa.pub .ssh/authorized_keys
for further info, google up 'ssh keys'
And if you transfer large files and find the encryption slows you down, just turn it off with the following switch: -o Cipher=none
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:06 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|