02-28-2007
SFTP vs FTP and going UNIX to LINUX
I have automated an ftp process that FTP's files from one UNIX box to another in the following format:
ftp -n -v $REMOTE_SERV << EOF
user $FTP_USER $FTP_PASS
cd $REMOTE_PATH
put $CUR_NAME $NEW_NAME
bye
But how can I accomplish this SFTPing from a UNIX box to a LINUX box?
I've seen talk about an authenication key. But, what if I don't have that set up? Am I S.O.L.?
I am a very novice shell scripter so any help (especially spelling it out for me) would be greatly appreciated.
Thanks,
Tim
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I do not currently have any versions of Unix or linux, but I am considering getting one.
I have a home computer and I want to set it up with a linux with a GUI (I know nothing about that whol command line prompt),and I want to allow my friends to access certain files on my hard drive using... (5 Replies)
Discussion started by: KrazyGuyPaul
5 Replies
2. Linux
Hi,
I need to get a hostory of users who FTP into a server. How can I do it in Linux/Unix? Is there a command for this? I do not want to use netstat -a as it gives only the list of users who have a session currently on the server. Can this be done with the "last" command?
Please do let me... (0 Replies)
Discussion started by: manisendhil
0 Replies
3. UNIX for Advanced & Expert Users
Hi,
I transferred a tar.gz file from a linux server to a unix server using ftp.
In the unix box when i untarred, only few files with zero bytes were copied and i get "tar dir : cksum error"
Could anyone help me out ?
Thanks & Regards,
Abinaya (3 Replies)
Discussion started by: abinaya
3 Replies
4. Emergency UNIX and Linux Support
Hi,
we have a big problem,
history:
we migrated our companies ftp and sftp-server, which were vsftp and openssh, to one server, software is called JSCAPE ftp server professional edition
for the first time everything was great, but after one or two months, our uploads hang, 0 byte files are... (11 Replies)
Discussion started by: funksen
11 Replies
5. Shell Programming and Scripting
Hi all,
Can anyone help ...on how to ensure that a file is locked .
thanks & regards,
Soodoo
----------------------------------------
Problem description: -
We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process.
... (1 Reply)
Discussion started by: soodoo
1 Replies
6. Shell Programming and Scripting
HI,
I have to transfer files from linux server to windows using secure ftp (sftp) .Kindly help me out. (3 Replies)
Discussion started by: manushi88
3 Replies
7. IP Networking
hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..
thanks very much, (3 Replies)
Discussion started by: Little
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I am new to the Unix forum.I need inputs regarding the transferring the FTP jobs from Hp unix to Linux 6.x.
Here are the steps that i followed in creating the job in Linux:
1. On the HP unix box logged in as root and gave the command crontab -l. The output i have a copied it to the... (3 Replies)
Discussion started by: AReddy
3 Replies
9. Red Hat
SFTP user creation step…
Create a group
# groupadd sftp_users
If the users doesn’t exist on system , use below command :
# useradd -G sftp_users -s /sbin/nologin username
# passwd username
For already existing users , use below usermod command :
# usermod –G... (1 Reply)
Discussion started by: taherahmed
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
Seeking for your assistance on how to ftp or sftp from workplace to unix server?
i tried ftp user/pass but it says "command not found" i tried sftp user@localhost i can't connect.
Please advise,
Thanks, (1 Reply)
Discussion started by: znesotomayor
1 Replies
LEARN ABOUT CENTOS
ftpconfig
ftpconfig(1M) System Administration Commands ftpconfig(1M)
NAME
ftpconfig - set up anonymous FTP
SYNOPSIS
ftpconfig [ftpdir]
ftpconfig -d ftpdir
DESCRIPTION
The ftpconfig script is executed by the super user to set up anonymous FTP. Anonymous FTP allows users to remotely log on to the FTP server
by specifying the user name ftp or anonymous and the user's email address as password. The anonymous users are logged on to the FTP
Server and given access to a restricted file area with its own file system root. See chroot(2). The FTP area has its own minimal system
files.
This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account,
creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to
prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user
account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched. This
command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded.
OPTIONS
-d Create a new or update an existing ftpdir without creating or updating the ftp user account. Use this option when creating guest
FTP user accounts.
OPERANDS
The following operands are supported:
ftpdir The absolute pathname of the directory under which the anonymous FTP area is set up.
EXIT STATUS
The following exit values are returned:
0 Successful completion
1 Improper usage of the command
2 Command failed
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWftpu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
ftpaddhost(1M), in.ftpd(1M), useradd(1M), chroot(2), attributes(5)
SunOS 5.10 1 May 2003 ftpconfig(1M)