Connect and retrieve files

I need to connect to a machine [whose IP is known] and which need not be on the same network. Once connected, I have to retrieve a set of files [path of the directory is known] from the same and store in it some place in my machine. I am new to Java, so can some please help me out!!!

"scp" is for securely copying files between sides. It can be set up with keyparis so that it weill not ask for password, so it can be used in a batch environment like a shell script or executed from java.
User Commands                                              scp(1)
NAME
     scp - secure copy (remote file copy program)
SYNOPSIS
     scp [-pqrvC46]  [-S  program]  [-P  port]  [-c  cipher]  [-i
     identity_file]   [-o   option]   [  [user1@]host1:]file1   [
     [user2@]host2:]file2 [...]
DESCRIPTION
     The scp utility copies files between hosts on a network.  It
     uses ssh(1) for data transfer, and uses the same authentica-
     tion and  provides  the  same  security  as  ssh(1).  Unlike
     rcp(1),  scp  will  ask for passwords or passphrases if they
     are needed for authentication.

Similar Messages

  • I have a windows 7 desktop with an external hard drive setup on my home network, will i be able to access this on my home network to save and retrieve files from my mac air?

    i have a windows 7 desktop with an external hard drive setup on my home network, will i be able to access this on my home network to save and retrieve files from my mac air?

    Troubleshooting Home Sharing - http://support.apple.com/kb/TS2972

  • Whats is the easiest way to store and retrieve files using a DB?

    Hello,
    I have a web application where my users need to upload and retrieve files(.doc, .ppt. excel). I want to store them in the database instead of on the server. Anyone have any ideas on the easiest way to do this?
    Thanks,
    Danny

    Well, there's a BFILE data type-- that allows you to store essentially a pointer to a file in the database, though the file itself would be stored externally.
    A better option would be to store the data either as interMedia Text or as a B/CLOB, so all the data from the file would be stored in the file. interMedia Text gives a number of benefits if you're going to be working with the data-- i.e. searching the data, etc, but the additional work & restrictions may not be worth it if you just want to get the data in and out of the database whole.
    Justin

  • Broken Ftp Connection and big files problem

    I have a problem with big-files downloading.
    Does anybody know how to resume downloading using FTP-connection?
    Or how can I get bytes from FTP connected file using something like random access to avoid the restart of downloading the file?
    "InputStream" does not support "seek"-like methods.

    From RFC 959
    RESTART (REST)
    The argument field represents the server marker at which
    file transfer is to be restarted. This command does not
    cause file transfer but skips over the file to the specified
    data checkpoint. This command shall be immediately followed
    by the appropriate FTP service command which shall cause
    file transfer to resume.
    You should also be aware of RFC 959 Section 3.4.2 on BLOCK MODE transfers which is what allows FTP to REST a connection and "skip" n-bytes of a file.

  • How can i connect and share files from my mac book pro to my windows PC?

    (I have a tp-link wifi router which is connected to mac and from the same router pc is connected via pan cable)

    Hello Chandan Mj,
    After reviewing your post, I have located an article that can help with file sharing between Mac and Windows computers:
    OS X Mavericks: Set up a Windows computer to share files with Mac users
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • [SOLVED] Maximun TCP open connections and Open File Descriptors

    Hi,
    back when I was using XP I needed to patch a system file to increase max amount of open TCP connections - you surely know about this. I'm wondering how do I do the same in GNU/Linux and if that's real important here.
    Also, by default open files are set to 1024, how do I change that? I'm running x86_64 + KDE SC 4.4.2
    Last edited by martin77 (2010-04-12 04:17:27)

    Thanks for replying.
    I mean "open file handler" or in a better GNU/Linux terminology "open file descriptors" aka the maximun number of files that can be accessed at a given time.
    For instance, VMWare will need you increase them to 4096 to work properly - and I presume something in the order of 5120 would be ok.
    Following The Arch Way, already found the solution and want to share it with all of you fellow n00bs:
    1. you need to open for edit /etc/security/limits.conf file with root privileges
    2. at the end of the file add:
    * soft nofile nn
    * hard nofile nn
    where nn is the number of open file descriptors you want. I set them to 8196 (probably too high) so for instance it should read:
    * soft nofile 8192
    * hard nofile 8192
    Read the embedded help for a better understanding of this crucial configuration file.
    As usual, thank you very much to this great community, devs and users, best!
    Last edited by martin77 (2010-04-12 04:18:47)

  • Saving in USB and retrieving file problem?

    My file was able to be previewed in my computer (imac). However, when file is saved in USB, and reopened, linkage to other pages and pictures were lost. How to solve this?

    Check the links in your site to verify they are not absolute paths. You should be using Document Relative paths instead.
    So if you see something like...
    c://computer/user/site/folder/image.jpg
    You'll need to fix them in DW first so they look more like
    folder/image.jpg
    If the site was set up correctly locally, and your links are no longer absolute paths, you will be able to save it onto a USB and have those files viewable from in IE, Firefox or other browsers.
    If you are attempting to modify the USB files from DW, you'll want to create a site from them in DW first or you could end up in the same situation you were in to begin with.
    Site > New Site > give it a name > for Local Root Folder, browse to the site's root folder on the USB device.

  • Eliminating a user and retrieving files

    I had a problem with Mac OS refusing me access to files on my hardisk, saying that I did not have the necessary authorizations. Following technicians' advice, I ran the disk utility which repaired a lot of 'permissions'. However, the problem persisted and I was advised to create a new user identity.
    I created a new identity and transferred all my files (documents & images) created under the old identity an external hard disk, and then copied them back onto the MacBook Pro disk under the new identity.
    However, some of the files cannot be opened using the new identity (I get messages saying that the file is damaged or incomplete or that I don't have permission to open the file or that it is in read-only mode).
    Is there a simple way of transferring all the files created in one identity to another identity?
    Many thanks in advance for your help
    Garry
    MacBookPro   Mac OS X (10.4.6)  

    open a terminal (go to Applications, then to Utilities, just there...)
    write this commands in order and then enter
    1. cd /Users
    2. ls
    you will now see all the files under /Users. Your new username must be there. let say it is "newuser"
    4. sudo chown newuser.newuser newuser -R
    if it does not work, post it here, I will try helping you...
    MacBook Pro 2.16,ibook g4 1.33, Compaq evo n800v p4-M 2.0   Mac OS X (10.4.7)   and 1/2 ipod nano black

  • Commons net and retrieve complete dir structure

    Hi everybody,
    I'm using commons net from apache to connect and download files from a FTP site.
    I have a question: is there any easy (and quick above all...) function to get the complete directory structure of FTP site without using recursively the listFiles() method, which takes a LOT of time?
    I only need to syncronize a local dir structure to the FTP one. I don't need to download any file. Many thanks for your help.

    1) I like to retrieve ftp files only with some
    extensions like *.txt or *.jpg etc. How can we
    retrieve files with specifying file extension?
    List the files and then filter the list to those that you want to process.
    2) I need to compare the FTP Files with the local
    files before downloading from the FTP Server?Think about this one! To compare two files you nead to read both. If you do this on the client then you will have to copy the file from the server first!
    >
    3) I need to move files from the ftp server to local
    directory. Is there is anyway to move the files
    rather than first retrieve files from the FTP Server
    and then deleting the file in the FTP Server using
    FTP delete()What is wrong with copy then delete?

  • Upload and Download file using MySQL database.

    Can anyone help me ....
    how to write a code to upload file to and retrieve file from MySQL database.
    The files may be .bmp , .wav, .zip, .exe and so on....
    thank you...

    Cross-posted and multi-posted.

  • Can connect but not retrieve file list (VSFTPD) from within network

    Hi!
    I've got a D-Link DIR-100 wired router to which an Airport Express and an MSI Wind (Arch Linux server) is connected. I can connect to the Wind from outside the LAN, which includes SSH, HTTP and FTP. However, FTP won't work if I'm inside the LAN. The Wind has the IP 192.168.0.101 in the network, and I forwarded the port 22 for SSH, 80 and 443 for HTTP and 20-21 for FTP. I'm using OpenSSH, Apache, and VSFTPD.
    When trying to connect with Transmit (OS X) I get this error message:
    [b]Could not retrieve file listing.[/b]
    Server said:
    Illegal PORT command.
    Error -162: PORT failed
    The Transmit log looks like this:
    Transmit 3.6.7 Session Transcript
    LibNcFTP 3.2.1 (August 13, 2007) compiled for UNIX
    Uname: Darwin|asynja.local|8.11.1|Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386|i386
    220: (vsFTPd 2.1.0)
    Connected to www.mydomain.se.
    Cmd: USER myusername
    331: Please specify the password.
    Cmd: PASS xxxxxxxxxx
    230: Login successful.
    Cmd: TYPE A
    200: Switching to ASCII mode.
    Logged in to www.mydomain.se as myusername
    Cmd: SYST
    215: UNIX Type: L8
    Cmd: PWD
    257: "/home/myusername"
    Cmd: PASV
    227: Entering Passive Mode (192,168,0,101,227,13).
    Fixing bogus PASV data address from 192.168.0.101:58125 to XX.XXX.XX.XX:58125.
    Data connection timed out.
    Falling back to PORT instead of PASV mode.
    Cmd: PORT 192,168,0,102,204,170
    500: Illegal PORT command.
    Cmd: NOOP
    200: NOOP ok.
    Cmd: PORT 192,168,0,102,204,171
    500: Illegal PORT command.
    (I edited out the IP and login credentials.)
    If I try to connect to 192.168.0.101 though it works like a charm. How come I can't use the same adress? I can visit the external IP/HTTP in a browser, I can connect to it through FTP, but I can't view the files?

    Interestingly, the errors above seem to be a little bit of a
    red herring. If I turn off "enable file check in and check out" in
    Dreamweaver then files can be downloaded, edited and uploaded
    perfectly. I can also create new files. As soon as I turn checkouts
    back on, it stops working. The errors above show up in the Apache
    server log even when this box is unchecked and yet everything works
    correctly. Because Contribute offers no option for editing without
    writing extra info files to the server it still won't work.
    The Dreamweaver log shows the following when I attempt to
    check out a file:
    Started: 12/19/08 6:25 PM
    Operation timed out. Cancelling...
    Operation timed out. Cancelling...
    /webdav/robots.txt - error occurred - An HTTP error occurred
    - cannot get robots.txt. Dreamweaver could not connect because the
    server is down or not accepting connections.
    File activity incomplete. 1 file(s) or folder(s) were not
    completed.
    Files with errors: 1
    /webdav/robots.txt
    Finished: 12/19/08 6:27 PM
    As I mentioned, when I turn off checkouts this whole process
    works correctly, and I can edit and create new files.

  • Connecting to datasource and retrieve, insert and update data

    hi,
    i am doing a JSP page that need to retrieve data and display on textView, insert data and update data. I have already create a datasource in Visual Composer. Does anyone have a sample codes for mi to use it as reference. So that i can connect to the datasource tat i created in Visual composer and retrieve, insert and update data. thanz
    Regards,
    shixuan

    Hi,
    After creating a data source in Visual composer .
    you have to create a BI system that Visual Composer can use in
    the SAP NetWeaver Portal.
    refer this pdf file for further Info
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards,
    Beevin

  • How do i retrieve file vault protected files from an external hard disk that used to be my mbp's hard drive? the hard disk got corrupted and will no longer boot. I put it in an enclosure and attempted to copy my files but failed because of FV encryption.

    This external hard disk used to serve as the main drive of my mbp. It got corrupted and the OSX would no longer load. I upgraded to a 500gb hd and used the old hd as an external drive. I tried to copy my files but i could not access them because of the filevault encryption. 110gb of hd space appears as used which means that my files are still in the drive. Is there a way to retrieve these files? thanks

    According to your post, you're using Leopard, so FileVault only encrypts your user folder (unlike Lion). On the mounted external drive, in your user folder, you should see a file called username.sparsebundle, with username being your user name. Double-click that file to open it and it should prompt you for a password. Type in your password and the file will mount as a volume in Finder. You should be able to copy all of your files over.

  • Cannot refresh table - test connection works fine but refresh gives "We couldn't refresh the connection. Please go to existing connections and verify they connect to the file or server." error.

    I'm having some difficulty updating a table in my powerpivot data model. The data for the table is stored in a local excel file; if I go to
    Existing Connections select the connection and do a test then everything is successful. When however I try to refresh that particular table I get the following error:
    "We couldn’t refresh the connection. Please go to existing connections and verify they connect to the file or server."
    In the past I had this and it was an authentication issue, the files are stored on SharePoint and I wasn't logged in to Sharepoint - I have however checked this and it can't be the issue because I have other tables linked to other excel files in the same
    location that are refreshing without issue. Can anyone think of what may be causing it?
    I have even tried creating a new local excel with the same data, added it to the data model and then tried a refresh and I I get exactly the same issue. 
    Are there any known issues with refreshing data from an Excel file if, after the initial import, you add columns to the table in the excel file I was wondering if this might contribute?
    Thanks

    Hi Maracles,
    Thanks for your post.
    From your description, I tried to reproduce this issue on my test environment. However, everything is fine for me. Could you please post the specific version of SQL Server PowerPivot for Excel?
    You can try to use a trace file to troubleshoot errors in PowerPivot. If this issue still persists, please try to reinstall SQL Server PowerPivot for Excel to see if this helps.
    For more information, please see:
    PowerPivot Options & Diagnostics Dialog Box:
    http://technet.microsoft.com/en-us/library/gg399091.aspx
    Using a Trace File to Troubleshoot Errors in PowerPivot:
    http://www.sqlchick.com/entries/tag/powerpivot
    Best Regards,  
    Elvis Long
    TechNet Community Support

  • I am connected to my remote server and "put files" but the web page files do not update, whats going on?

    I really can't figure this out:
    So I use a different computer at school for web design, I bought Dreamweaver to work on it at home, I get the files fine from the server that I uploaded at school but then I make changes at home computer and connect and "put" them and I check online and the web page doesn't change one bit.
    I don't have the exact file extensions from the computer at school but when I connect and get I have a similar folder(s) set up and then it downloads them into Dreamweaver file manager box and makes the folders there I downloaded. The site shows up fine in Dreamweaver after I "get" so great I thinking.
    But... not so fast, I change the page in Dreamweaver, preview n a browser and look right on so I "put", connect to server and upload. Then I check online an its still the same I uploaded the CSS and HTML and dependent files by dragging over and also using the up arrow "put" as well but nothing changes on the web page online.
    What is happening here I am so confused?
    Thanks a bunch, I mean I can still preview as I go but I really curious why my "put" files don't change my web page like at all!

    Have you tried refreshing the browser, or deleting the browser cache?

Maybe you are looking for

  • No Response messages & computer shutting down, plus adapter driver missing (HP Pavilion m9400t)

    My desktop computer (HP Pavilion m9400t, Vista 64-bit, SP2) has slowed to a grind in recent months, and programs keep locking up, giving me a "No Response" message. This started with IE 9 tabs, then MS Outlook, and now it's every program. I often reb

  • Default Font in Acrobat 7 and/or Acrobat Reader 9

    Anyone know how to change the Default Font in Acrobat 7 and/or Acrobat Reader 9?  Whenever I open a PDF document the text defaults to a Times New Roman or basic font.  Can we change the default font?

  • Oracle Database - Database Configuration Assistant

    Hello, When I was installing Oracle Database (at Install Product), it reached Database Configuration Assistant with an error pop out: ORA-12638: Credential retrieval failed. Please advise me, thank you in advance~

  • KGS to Nos Calculation in AP Invoice

    Hi Experts We give some material to Subcontractors in Nos.  After finish the Subcontracting Job they give the invoice bill in Kgs. Ex:  We give 100 Bolts for Subcontracting.  They finished subcontracting and give the bill for 100 bolts weight is  10

  • Number of PROCESS

    Hi, In the initSID.ora, we can specify PROCESS=<number> I new that this is the maximum processes, but what is it ? Anyone can explain more detail ? For LARGE site, what is the optimal setting ? Is it true that smaller value will increase the performa