Cfftp and Winscp
Gentlemen,
I am writing a script to connect o a remote SFTP server. The server that I am trying to login to requires a "private key" which is a file that the remote authentication process uses to log you in. In Winscp I browse to the file that is my key. That is in addition to my host server name, username and password. Using cfftp I can specify the host, the username and the password but I don't know what to do when it comes to this file which is my key: filename.ppk.
Any thoughts anybody?
And I need to pass that file so my connection gets established.
Thanks!
Ysais.
Thanks Mack, Now I am trying to extablish a secure FTP connection and my code is complaining about the attribute connection. I am really troubled since I need to specify a connection name to be able to reuse my connection again. This is my code:
<cftry>
<cfftp action="open" connection="VeratadFtpConnection" fingerprint="#variables.fingerprint#" key=\\server\path\key.ppk passphrase="passphrase" secure="no" server="ftp.server.com" stoponerror="no" username="someuser">
<cfcatch type="any">
<cfoutput>
#cfcatch.Message#<br />
#cfcatch.Detail#<br />
#cfcatch.Type#<br />
</cfoutput>
</cfcatch>
</cftry>
Similar Messages
-
I'm trying to use a query into a DB and then use cfftp to
upload a file to my webserver.
Is there a way to roll back the cfftp request if there are
any errors in the process?
Thanks in advanceOnce the file has been uploaded to your server, you can
delete it with cffile. -
Cfftp and file's lastModifed question
Using cfftp, is there another way to get a file's
LastModified DT stamp other that using action="listDir"?
I have a scheduled job that hits an ftp server every minute.
The file I'm trying to check is in a folder with a handful of files
that are all constantly updating, and my code intermittently bails
on the "listDIr". My guess is one of the files are being updated at
the moment I'm doing a "listDir", and ColdFusion can't read the
directory and bails.
Thanks for reading,
JBUsing cfftp, is there another way to get a file's LastModified
DT stamp other that using action="listDir"?...The problem is
listDir does more than I need (i.e., gets meta data for everything
in the ftp directory). I just need the modifed DT stamp for one
file. But I can't figure out any other way to get it than to list
the whole directory and parse through that.
I, too, might need such a functionality. Here is something I
found. Download the
free
version of edtFTPj. It is a ZIP file. Extract it. Copy the JAR
file, edtftpj-1.5.2.JAR, to Coldfusion's lib directory (e.g.
c:\cfusionmx7\lib on my machine). Restart Coldfusion, to update it
with the new JAR file.
The code below assumes the following:
FTP server: ftp.juliebread.com
username: BKBK
password: kbkb072
File whose 'last modified date' you need:
ftp://ftp.juliebread.com/testdir1/testdir2/report.xml
For more information, go to the
edtFTPj
website. There you will find information about
the
edtftpj API and, in particular, about the
FTPClient
class. -
CFFTP, CFLDAP and securing passwords
Good afternoon. I have several applications which use tags
such as CFFTP and CFLDAP. These applications do not prompt for user
input, but rather automatically supply the application with the
username and password required from a DB lookup. Currently, the
passwords are stored in plain text in the DB (SQL 2K)...yes, I
know...HORRIBLE!!! How do I secure these passwords or at least
secure passing the passwords to the tags, so that they are not in
plain text? Since I am automatically supplying these passwords, I
can't use salting and hashing, right? Your expedient assistance is
greatly appreciated. Thank you.
ChrisHi Chris,
You should really be storing your passwords with a one-way
hash in your database but that won't help with the SFTP problem. If
you are using SFTP the passwords are not sent to the server in
plain text anyway, the only difference is that you are giving it
over to the sftp tag from a query column, which is in plain text
anyway. If I understand correctly you would want to retrieve the
usernam and password from the database, encrypt the password, pass
the username, password and encryption key to a function that would
then unencrypt the password and pass it to the SFTP tag? You have
to give an unencrypted password to the tag since I imagine the
password on the server is also not encrypted.
That seems like a lot of overhead for absolutely no increase
in security. -
Running Windows 7 on one partition, and Windows 8 Consumer Preview on another, Firefox does not open for either.
Firefox crashes upon opening without an error message. I have reinstalled and manually cleared profile information. If I create a new profile, it works until I close and try to relaunch requiring me to make a new profile.
I have tried removing/reinstalling java as well (just in case), as I had been editing some of the java installation from my Windows 7 partition.
As I launch the Firefox, if I watch the task manager, Firefox.exe appears for a moment, but disappears almost immediately.
No files appear in 'C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Crash Reports' directory with the exception of the 'InstallTime*********' file.
*Information posted in the "Troubleshooting Information" section below is from the Windows 8 Consumer Preview partition. There are some errors with my display driver not being updated properly, but Firefox -was- working on Windows 8 Consumer Preview until just recently, so I am assuming that is not part of the issue.Noah_SUMO,
Regarding Naomi Internet Filter, I verified that it was -not- something installed (I hadn't heard of it before, but I made sure nevertheless in case it piggybacked on something).
As far as system restore software, I keep none =x
Never have, and I change over OS's relatively often (I went from 7 this past fall to 7/Kubuntu/BTLinux, to 8DeveloperPreview/Kubuntu/BTLinux, to overwriting Kubuntu with 7 a few weeks later, overwrote 8DevPrev to 8ConsumerPreview, and then removed both linux partitions and remerged with a fresh install of two separate partitions for 7 and 8 (I help with some OS compatibility/stress testing for a friend's software development company).
As far as software that monitors or interacts with online connections..
Adobe Flash Player 11 Plugin, Apple Application Support, Apple Software Update, Bonjour, Google Chrome (not that it's preferred over FF, just over IE ;]), Java(TM) 7 Update 3, Microsoft Security Essentials, Microsoft Silverlight (I started having issues not long after I installed Silverlight, however I don't feel like this is causing any issue, as I tried removing it and reinstalling everything from scratch, but no luck), Mozilla Firefox 11.0 (x86 en-US)/Mozilla Firefox 12.0 (x86 en-US), Mozilla Maintenance Service, No-IP DUC (tested this and found no difference or ability for it to hinder FF), (previously) Skype 5.8, TortoiseSVN 1.7.5.22551 (32 bit), and WinSCP 4.3.7.
None of which I've found to have issues with Firefox in the past, as well as FF was working with them until just recently.
As far as I can tell, automatic updates were disabled for everything (including my OS), and no changes had been made to any of the software, with the exception of I had installed Silverlight, but as mentioned earlier, I didn't find any issues with this.
Like you say, my best guess at this point would be that there's something funky set up with my partitions, and so I may just do another fresh wipe and try again (it just takes forever to get everything installed that I need for school, so I'll probably just wait it out for a while).
The only reason in which I would go against it being a partition setup issue, is that it -was- working. However, I do recognize that something could have come up after a while (not sure how, but I don't doubt it).
I hadn't thought about downgrading past 11, but it's definitely worth a shot, and I'm more than willing to try. once I'm done with stuff today I'll give it a shot and post the results here.
Thanks so much for your suggestions. -
Hi,
I have a page which uses CFFTP and Ajax to allow the user to browse an FTP directory list.
The logic is,
Open Connection and List FTP Folders in Root, Close connection
Click Folder
Open Connection and List FTP Folders in Folder clicked, Close Connection
Click File
Copies File to hardcoded location.
Here's is a snippet of code
<cfparam name="arguments.dir" default="">
<!--- Open FTP Connection --->
<cfftp connection="Myftp"
server="server"
username="username"
password="password"
action="Open"
stoponerror="Yes"
passive="yes"
>
<cfif NOT comparenocase(arguments.dir, '')>
<!--- Get Curent FTP Directory --->
<cfftp connection="Myftp"
action="GetCurrentDir"
stoponerror="Yes"
passive="yes">
<cfset arguments.dir = cfftp.ReturnValue>
</cfif>
<!--- Get Directory Listing --->
<cfftp connection="Myftp"
action="listdir"
directory="#arguments.dir#"
name="dirlist"
stoponerror="Yes"
passive="yes"
>
<!--- Close FTP Connection --->
<cfftp action="close" connection="Myftp" passive="yes">
This can work fine, but more often than not it hangs. When it hangs I cannot access the FTP server via an FTP client either.
Any ideas? ThanksPotential issues that I'm thinking it could be are:
- TransactionScope Promotion
- MSDTC Problems
- ODP.NET issues with MTS -
Adobe Contribute CS3 Connection Error
I am trying to use Adobe Contribute CS3 Version 3.1 to connect our web server. I can use WS_FTP and WinSCP to connect to it fine. Our web server is running under CentOS 5.x. When I try to connect using the connection wizard in Contribute, I receving the following error:
Contribute cannot verify your connection information.
/tmp
Please contact your administrator for assistance.
I have tried both FTP and SFTP. Again, I can login, navigate to /tmp and upload, download, and delete files fine using WinSCP. Can someone let me know what Contribute is trying to do to verify the connection? Is there a log file? Any help is appreciated.When I first tried to connect to our web server, I received a similar error. What worked for me was getting rid of the folder designation when trying to connect in Contribute (in your case /tmp) and allowing users to have permissions to access all folders on the web server. I create Contribute roles to limit the users to specific folders.
I hope that helps.
Kathy -
Receiver SAP SFTP adapter-errorlog on SFTP server
Experts,
I am using receiver SAP SFTP adapter to connect to an SFTP server and send files.Receiver SFTP server is a VMS system.I could able to write the files to home directory of the user that has been given,but apart from writing the files I am seeing warning log file in the the target folder on SFTP server like below description.I am giving dot(.) in the file path to write the files to the default directory that has been assigned to the user given by receiver SFTP server team.
WARNING: ssh_file_server_receive_proc: platform cannot stat() filename /home/dir1/dir2 ./TestFile(TestFile is my file name) .
Just to test,we placed files in the receiver SFTP server using same user and password as the PI recv SFTP channel with command line and winsCP client tool,but we don't see any error logs on the server with WinSCP tool or command line transfer of the files.Log file with above warning is generating only when we place files on the server using SAP SFTP adapter in the recv channel of PI.
Please let me know,if you have any insight or seen similar issue.
Thank you,
SriHi Poonam - Blogs on SFTP : Just search for SFTP and filter by blogs/documents.. you can find many..
>>> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?QuickLink=index&overridelayout=true&57075820413417
http://scn.sap.com/docs/DOC-35572
I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
>>> Yes. It is only possible with NFS.
You have to define multiple channels/interfaces... -
Local DB connect OK, remote ping OK. Remote DB connect KO
I have installed 11g XE on a VM.
I can connect to DB locally on the VM
I can ping VM from the main computer.
However, when I try to connect to the DB from the main computer, I get the following message in SQLDeveloper: "The Network Adapter could not establish the connection".
In SQLPlus, I have: ORA-12170: TNS:Connect timeout occurred
Main computer:
Windows 7 ultimate; Oracle VM VirtualBox manager
VM:
OracleLinux-R6-U1-Server-x86_64
linux.x64_11gR2_OracleXE
I am trying to connect to DB using VM's IP address
I think, I am missing something, but what?
Thank you
IgorOscar,
Thank you for the idea. I have added symbolic names in hosts file and don't use raw IP addresses anymore.
However, main problem is still unsolved. Not being a very Linux man, I work on this Linux VM through PuTTY (copy/paste command line) and WinSCP (file transfer for CodeWright edition, cause I don't like vi and the VM does not have GUI). So, the VM is perfectly atteignable , save for DB. -
How to save an image from an HTTP adress
I want to save to my HardDisk an image which adress is for
example :
http://www.mysite.com/img/myimage.jpg
I cannot use CFFTP, and CFFILE does not allow HTTP adress,
It should be something like CFFILE but on HTTP protocole ?
Thanks for any help,
Pierre.plarts wrote:
> CFHTTP allow me to get the HTTP file and display the
image on my screen,
> but cannot save it on the HardDisk.
Yes, it can. Did you look at the documentation as suggested.
Specifically the file and path attributes?
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_g-h_09.html -
Win8 clients can't write over FTPS to Win 2012 with FTP site hosted in IIS 8
I've made an interesting discovery that is mentioned in part on other posts in other forums. This involves IIS; however, I believe the issue rests with the Windows Server 2012 OS.
Here's the scenario.
Client:
Windows 8
almost any FTP client
Server:
Windows Server 2012
FTP site hosted in IIS 8
Problem:
The client connects to the FTP site via FTPS (regular FTP works). The connection is successful, and the client is able to list the directories and download content. However, the client cannot upload anything to the FTP site.
Error: 550 The supplied message is incomplete. The signature was not verified.
Any of the following modifications to the scenario will allow the client to upload content:
changing the client OS to Windows 7
changing the server OS to Windows 2008 or 2008 R2 (IIS7+)
changing the FTP client to CoreFTP (I've tried FileZilla, the Microsoft FTP client, SmartFTP, and WinSCP)
I found this post regarding FileZilla that states there is an SSL cipher ordering issue with Windows Server 2012 and IIS8 for FTP clients using explicit TLS:http://trac.filezilla-project.org/ticket/7910
Their "solution" points to an MSDN blog post here:
http://blogs.msdn.com/b/kaushal/archive/2011/10/03/taming-the-beast-browser-exploit-against-ssl-tls.aspx
This states that you need to reorder the SSL ciphers with TLS_RSA_WITH_RC4_128_SHA as the highest priority; however, there is a limitation to the text file where you order the ciphers, 1023 characters, which is less than the total number of characters for
all ciphers. This means you must know which ciphers will be needed and in which order as to not break anything else. That's not a viable workaround.
Does anyone know if there is a patch coming down to fix this, or are there any more viable workarounds? One would think a Windows 8 client should be able to connect via FTP with explicit TLS to an FTP hosted in IIS8 on Windows Server 2012 to upload
content.Hi,
As the MSDN blog mentioned, that currently we can only workaround the issue with provided settings. As FTP settings are now included in IIS, it is still recommended to post to IIS forum to see if there
is any known suggestion regarding this.
http://forums.iis.net/
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forum a great place. -
Hi I newly installed oracle linux..
I dnt have internet..
My FTP is not working, m trying do ftp tp oracle linux but root ,password is not accepting.
Can u help me in enabling FTP services so that i can transfer packages to itYou may need to check your firewall configuration, or turn it of using "service iptables stop". However, Telnet and FTP are legacy protocols used in the last century and obsolete. Unless you have a very specific need for FTP I suggest not to bother with it anymore.
Only ssh, tcp port 22, will be allowed to accept incoming connect by default. Apparently you have Putty (ssh client) and WinSCP, which supports SFTP and SCP. If you can use SSH to connect to your machine, SCP and SFTP will work too. If you cannot establish a SSH connection with your server, check your network routing and tcp/ip configuration on the client and server. If you run any kind of machine virtualization, check the virtual network adapter type. -
Connect To FTP://
I am having some issues here with connecting to a ftp://
site...
How do I connect to this address ftp://idx.fnismls.com with a
username and password. I have tried cfhttp and cfftp and it fails
with both. This address only works in a brower if you type in the
full address with ftp:// ... if you just type in idx.fnismls.com it
will not ask you for the username and password to get access.
I have no clue as to what to do. Any help would be much
appreciated.
Thanks!here's a sample of what you'd do...
<cfftp action="OPEN" server="ftp://idx.fnismls.com"
username="username"
password="password" result="" stoponerror="Yes" port="21">
what's the exact problem you're having?
any errors/mesages?
"bweno" <[email protected]> wrote in message
news:fg8brh$7q9$[email protected]..
>I am having some issues here with connecting to a ftp://
site...
>
> How do I connect to this address ftp://idx.fnismls.com
with a username and
> password. I have tried cfhttp and cfftp and it fails
with both. This
> address
> only works in a brower if you type in the full address
with ftp:// ... if
> you
> just type in idx.fnismls.com it will not ask you for the
username and
> password
> to get access.
>
> I have no clue as to what to do. Any help would be much
appreciated.
>
> Thanks!
> -
This is the weirdest behavior i've ever seen in 8 years using
CF. My CF 7.0.2/Win2003 AS/Jrun is hanging everyday. Sometimes it
dies 8:10, sometimes 8:20.... sometimes processor % is 50%,
sometimes is 0%. It's impossible to restart only CF, we need to
reboot the machine. I put the simultaneous requests to 64,
sometimes it hangs using 32, sometimes 63, sometimes 64.
Perfmon
Shot 1 - Hangin at 27 running requests, Simul. set to 48, no
queues, no timeouts, not a daamn clue.
Perfmon
Shot 2 - today... running requests at 45 (simultaneous to 64
max...??) processor time dropped to zero?
We have timeouts on every CFFTP and CFHTTP, now we're
finishing putting timeouts on every cfquery...
1) We thought it was those damn unresponsive threads, but
nothing is scheduled to run at this particular timeframe.
2) We thought it might me a RAR application compressing
database backup... NOPE, rar was rescheduled to 8:45 and CF died
ate 8:10 this morning..
3) We've been having this everyday...
4) Database is running on a separate server, perfmon is
telling me its running smooth, although it looks like db server
isn't responding...
4) Overall timeout set to 60sec, individual database timeout
30sec. CFHHTP/CFFTP timeouts, 20-30 sec.
I'll be checking for network problems and etc. but there's a
question pending answer: Why da hell CF is going thru the roof in
simultaneous requests and hanging and queue is zero (we had a
1-second 10 queues peak once) and its not timeouting.BKBK, im really sorry for this, i haven't noticed the adult
content... i just found this image hosting site and uploaded the
perfmon shots.. and, it's Alexei my name... and it's not what youre
thinking, this is a damn free image hosting site, im not earning
nothing form it. feel free to update an image there and see how it
works...
Sadikh, i've spotted a schedule ending near hang times, it
consists in a big cfloop with tons of cfhttps inside. thanks for
your reply, got your idea, it seems to be the right approach. Since
I believe I could isolate the problem, now i'll focus on triggering
the weird behavior. -
Any idea for uploading big file ?
i am working on a website , need to upload FLV video file , the problem i have i can upload the files like jpg with the low size like 500K or 1 MB , but when i try to upload movie file with the 2-3 MB after few minute i get internal error 500. its working on my local system nice but when i try from the hosting , its going crazy.
i use <cffile> to upload . i try <cfftp> and try to upload via ftp protocol but its same . it should not be timeout error because when i run it on my local server and change the destination to upload on hosting server insted of my local server its work perfect and upload the 3mb file in less than minute but when i run it on the hosting server nothing .
anybody has an idea whats going on ?
also it there any chance to have progress bar when useing <cffile > or <cfftp> ?
thanksIt is quite likely that a maximum size limit of around 1 MB has been set in the Administrator of the hosting server. Ask the people who run the server about this.
Maybe you are looking for
-
Macbook air with 10.10.1 keyboard and touchpad stop responding after login screen
Keyboard and touchpad works only at login screen. I have tried all the PRAM and SMC. reset stuff. Safe mode, repair etc. Creating another account is not helped either. I am also using 10.10.1 with macbook air. I have also called the apple tech suppor
-
Please send me the steps to delete a sales order. thanks in advance. my id is [email protected]
-
HT1338 how to make presentations in macbook pro?
how to make slides n presentations on mac book pro?
-
HT4914 I have made a mess of my music library in ITunes, will ITunes Match help?
I have many songs not labelled correctly or recorded using less than great quality in my Itunes library. I'm wanting to know if I sign up for ITunes Match, how do I get the enhanced, properly labeled library loaded back into my Itunes once it has be
-
Security for reprots running by Report Server
Hi When I run Reports in the a Forms application usiing web.show_document() all the parameters including user/password appears in address bar . what should I do ??? Thanx