10-10-2008
When you sftp to the target machine, you have to provide a
username and
password correct?
Instead of using sftp, try the following using the same
username and
password that you use for sftp:
ssh
username@targetmachine
It will prompt you for a password, enter the
password for that user.
If you can login with ssh, then read up a ssh-keys tutorial like:
Suso Technology Services -- Web Hosting,Web Design,E-mail Hosting, XEN hosting, Dedicated Servers, Colocation, Web Design and Web Development in Bloomington, Indiana
Then use scp to transfer the files accross without needing to supply username or password.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok I've lost myself and hit a brick wall.
What I am trying to do is avoid the login screen when the machine is turned on. So no login screen is needed unless you turn the machine on and log out to login and change users. But as I said before I've hit a brick wall. I got not an idea of what I... (4 Replies)
Discussion started by: merlin
4 Replies
2. UNIX for Dummies Questions & Answers
Hey all,
I'm trying to configure a system so when it reboots it'll automatically log as a user I have selected. I've never done this nor' as I to sure on how to. This is teh best I have found on teh web and well I've changed a few things. but does anyone who has done this know if it'll work... (1 Reply)
Discussion started by: merlin
1 Replies
3. UNIX for Advanced & Expert Users
I am trying to bypass the login screen when the system boots and auto-login to open windows. I believe I need to modify the S99dtlogin but I don't know what to add/modify. Has anyone ever created an auto-login for Solaris 8? (1 Reply)
Discussion started by: nvanduyne
1 Replies
4. HP-UX
Hi All,
We have some HP unix servers and sometimes we logon there thru a dedicated Windows server that has Reflection X on it in case we need X. In this case we always need to export DISPLAY=winservername:0.0
I want to automate this thing in .profile file. If e.g. $TERM = hpterm (thru... (2 Replies)
Discussion started by: BearCheese
2 Replies
5. Shell Programming and Scripting
Hi,
I looked into lot of posts on this question but i could not figure out the solution. we are using the following ftp shell program to send the file to target server.
#!/usr/bin/ksh
ftp -n -i<<EOF 2>&1
open <target server ip>
user <username> <pwd>
lcd /sc/doc/prd/FCSTP
put file1.txt... (3 Replies)
Discussion started by: srrao.ch
3 Replies
6. Windows & DOS: Issues & Discussions
can any one help me for auto login bat file from windows to unix,to check the server daily..
Thanks
Mohan (1 Reply)
Discussion started by: mohankasi
1 Replies
7. Windows & DOS: Issues & Discussions
Hi,
i am trying to connect to unix server from windows bat file using telnet command. But bat file is unable to pass username and password hence could not login to UNIX.
My requirement is to connect UNIX server from .bat file and run few macros at a perticular schedule. My UNIX login does... (1 Reply)
Discussion started by: rahulbahulekar
1 Replies
8. UNIX for Dummies Questions & Answers
i was able to script:
ftp -n hosname << DONE
user username pwd
put
quite
close
DONE
can i do same as sftp ? i tried, but it keeps asking for pwd. when i typed pwd, and it worked fine. (11 Replies)
Discussion started by: lawsongeek
11 Replies
9. UNIX for Dummies Questions & Answers
Hello All ,
Requiremnt : i want to login to putty automatically and change the settings like i want , for ex : changing the "lines of scrollback" , " under colors , want to check to checkmark the option use system colors" . Like this i want to do .
I have a bash file created to login . But... (2 Replies)
Discussion started by: radha254
2 Replies
10. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
LEARN ABOUT MOJAVE
curlopt_ftp_create_missing_dirs
CURLOPT_FTP_CREATE_MISSING_DIRS(3) curl_easy_setopt options CURLOPT_FTP_CREATE_MISSING_DIRS(3)
NAME
CURLOPT_FTP_CREATE_MISSING_DIRS - create missing dirs for FTP and SFTP
SYNOPSIS
#include <curl/curl.h>
typedef enum {
CURLFTP_CREATE_DIR_NONE,
CURLFTP_CREATE_DIR,
CURLFTP_CREATE_DIR_RETRY
} curl_ftpcreatedir;
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_CREATE_MISSING_DIRS,
long create);
DESCRIPTION
Pass a long telling libcurl to create the dir. If the value is CURLFTP_CREATE_DIR (1), libcurl will attempt to create any remote directory
that it fails to "move" into.
For FTP requests, that means a CWD command fails. CWD being the command that changes working directory.
For SFTP requests, libcurl will attempt to create the remote directory if it can't obtain a handle to the target-location. The creation
will fail if a file of the same name as the directory to create already exists or lack of permissions prevents creation.
Setting create to CURLFTP_CREATE_DIR_RETRY (2), tells libcurl to retry the CWD command again if the subsequent MKD command fails. This is
especially useful if you're doing many simultaneous connections against the same server and they all have this option enabled, as then CWD
may first fail but then another connection does MKD before this connection and thus MKD fails but trying CWD works!
DEFAULT
CURLFTP_CREATE_DIR_NONE (0)
PROTOCOLS
FTP and SFTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.10.7. SFTP support added in 7.16.3. The retry option was added in 7.19.4.
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if the create value is not.
SEE ALSO
CURLOPT_FTP_FILEMETHOD(3), CURLOPT_FTP_USE_EPSV(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_FTP_CREATE_MISSING_DIRS(3)