Copying Files From a Remote Machine through "rcp" command not working.

Hi All,
I'm a new comer to this famous forum. I was trying to go through the PDF "Solaris Advanced User's Guide" .So in chapter 9-"Using the network" i came across "Copying Files From a Remote Machine". And the syntax was "rcp machinename:source destination" . And i got another note. It is like
"The rcp command enables you to copy files from one machine to another. This command uses the remote machine's /etc/hosts.equiv and /etc/passwd files to determine whether you have unchallenged access privileges. The syntax for rcp is similar to the command syntax for cp.".
But i maintained remote machine's IP address in my system's /etc/hosts file. But still i am unable to do the rcp from remote system to my system or vice versa.
Always i am getting error message " **Connection refused**".
Therefore please some one guide me how to perform the " Copying Files From a Remote Machine" through rcp command.
Reghards
Kartik

Hi
The inconvenience of using scp is that you have to type the password every time you stablish a connection. You can work around this, adding a key into the remote hosts_allow file. This implies in more maintenance.
From the rcp man page:
+rcp does not prompt for passwords. It either  uses  Kerberos authentication which is enabled through command-line options or your current local user name must exist on  hostname  and allow remote command execution by rsh(1).+
From the rsh man page:
+ If you omit command, instead of executing a single command, rsh logs you in on the remote host using rlogin(1).+
By default, rlogin is disabled on Solaris 10
[SunOS 5.10/bash] root@wgtsinf01:/store/sun/operating-systems
# svcs -a|grep -i rlog
disabled       May_11   svc:/network/login:rloginSo, to use rcp you have to enable the rlogin service and set up all the configuration files. Particularly, as already suggested, I too suggest you to use scp. :)
Cheers
-- Andreas
Edited by: Bank_Of_New_Zealand on 15/06/2009 13:09

Similar Messages

  • How to Copy Files from Corrupt Time Machine Disk

    Following a series of power outages, my TM disk became corrupted. When I tried to repair with disk utility, I got the message: Unable to repair, copy as many files as you can and then reformat the disk.
    My question: Is there any way to capture all/part of my TM backups (they contain a history going back many months that I'd prefer not to lose)? Though I can dig in and get individual files, when trying for anything larger (like the series of backups), they are unable to copy with the files/folders being locked/read only.
    Any help would be appreciated. I'll move to a 2 drive backup system after this!
    Thanks

    TM performs a backup in a rather unusual manner. An initial backup stores all the files in a disc image file. It then creates a special type of alias for each file. When you look through a TM backup you are looking at the aliases, not the files themselves.
    If the drive's directory is the only thing corrupted and Disk Utility cannot repair it, then I suggest trying Disk Warrior that can repair many directory problems that Disk Utility cannot.
    Otherwise, you will need to go through the backup with the TM application and attempt to restore the good files to another hard drive. Also,
    See User Tips for Time Machine for help with TM problems. Also you can select Mac Help from the Finder's Help menu and search for "time machine" to locate articles on how to use TM. See also Mac 101- Time Machine.

  • I have noticed that when using Tigers Dosk utility to ERASE a flash drive I have a choice of FAT but not FAT32.  It seems that flash drives formatted as FAT do not work properly when trying to copy files from a Windows machine.  Why?

    I have noticed that when using Tigers disk utility to format an external USB flash drive I only have the choice of FAT ( when formatting for use on a Windows machine ) and not FAT32.   I have found that USB FLASH drives formatted as FAT do not always work on Windows machines.  Why?  How can I use Tiger to format for FAT32?

    I think it depends on the size of the Flash Drive as to whether it uses FAT16 or FAT32.
    Can you format it FAT32 on the PC?
    Other options would be NTFS or Mac OS Extended...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930
    MacDrive for the PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/

  • Check IN a file from local user machine using Input file tag

    Hi
    We have created a webapplication using Oracle UCM. We have designed certain forms and want to give users an input field to upload images to content server.
    I included a input type file tag in my form and on submit redirected to a JSPX.
    I included on JSPX following tag when the form is submitted as follows
    <wcm:idcService service="CHECKIN_NEW_FORM" var="fileUpload">
    <wcm:idcParameter name="doFileCopy" value="1"/>
    <wcm:idcParameter name="dDocName" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocTitle" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocType" value="Document"/>
    <wcm:idcParameter name="dSecurityGroup" value="Public"/>
    <wcm:idcParameter name="dDocAuthor" value="anonymous"/>
    *<wcm:idcParameter name="primaryFile" value="C:/test.txt"/>*
    </wcm:idcService>
    I was hoping to pass primary path that a client will specify will allow the file to check in to the UCM server.But, to my dismay the tag expects that primary file be the path of file present on the Server and not on client machine accessing the webapplication.
    How can I check in file from client local machine to UCM server. I found default IdcService=CHECKIN_NEW_FORM through web-application allows one to select primary file from his local machine. But, this not the case when i do the same using the tag above. Please help how can i achieve the desired result.
    Thanks,
    Aakash
    Edited by: 856575 on Jul 19, 2011 12:31 AM
    Edited by: 856575 on Jul 19, 2011 12:32 AM

    Hi
    We have created a webapplication using Oracle UCM. We have designed certain forms and want to give users an input field to upload images to content server.
    I included a input type file tag in my form and on submit redirected to a JSPX.
    I included on JSPX following tag when the form is submitted as follows
    <wcm:idcService service="CHECKIN_NEW_FORM" var="fileUpload">
    <wcm:idcParameter name="doFileCopy" value="1"/>
    <wcm:idcParameter name="dDocName" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocTitle" value="Test_Aakash"/>
    <wcm:idcParameter name="dDocType" value="Document"/>
    <wcm:idcParameter name="dSecurityGroup" value="Public"/>
    <wcm:idcParameter name="dDocAuthor" value="anonymous"/>
    *<wcm:idcParameter name="primaryFile" value="C:/test.txt"/>*
    </wcm:idcService>
    I was hoping to pass primary path that a client will specify will allow the file to check in to the UCM server.But, to my dismay the tag expects that primary file be the path of file present on the Server and not on client machine accessing the webapplication.
    How can I check in file from client local machine to UCM server. I found default IdcService=CHECKIN_NEW_FORM through web-application allows one to select primary file from his local machine. But, this not the case when i do the same using the tag above. Please help how can i achieve the desired result.
    Thanks,
    Aakash
    Edited by: 856575 on Jul 19, 2011 12:31 AM
    Edited by: 856575 on Jul 19, 2011 12:32 AM

  • Why cant i copy file from my macbook to my portable harddrive?

    i just bought a new macbook. i'm kinda newbie. i tried copying file from my macbook to portable harddive. it didnt work. can anyone tell me why? by the way, my harddrive is NTFS system. the funny thing is that i can copy file from my harddrive to my macbook.
    thanks for the kind soul out there.
    mac book Mac OS X (10.4.9)

    The easiest way around this is to reformat the external drive to be FAT32 if you want to use it with other PCs, or HFS+ if you only want to use it with Macs. You will lose all the data off the drive when you do this.
    You can reformat the drive using Disk Utility.

  • How to copy file from server to another machine in network through JSP

    Hello!
    any body can solve my problem.
    i m working in JSP. i want to copy a file from server on which JSP engine is running to another computer in the same network.
    i used Java File Object to copy file from one machine to another in network. and its working fine on network. but the problem is when i used the same code in web page there is exception which is Access is Denied. what i should do now.
    i m writing the code i m using in my JSP page
    String fileToCopy = "C:/oracle/Apache/Apache/htdocs/FAO/FAO_MiddleFrame.jsp";
         String destinationDir = "\\\\af09\\c";
    File source = new File(fileToCopy);
    String fileName1 = source.getName();
    if ((!destinationDir.endsWith("\\")) && (!destinationDir.endsWith("/"))) {
    destinationDir = destinationDir + "\\";
    File destination = new File(destinationDir + fileName1);
    if (!destination.exists()) {
    if (!destination.createNewFile()) {
    //throw new IOException("Unable to create file. May be you don't have permissions.");
    byte[] buffer = new byte[1024];
    FileInputStream in = new FileInputStream(source);
    FileOutputStream outStream = new FileOutputStream(destination);
    int bytesRead = 0;
    while ((bytesRead = in.read(buffer)) != -1) {
    outStream.write(buffer, 0, bytesRead);
    out.println("File copied successfully ....");
    plz reply me as soon as possible.
    i will be very thankful
    Saad

    Thats the way it works. Cause servlet contaner doesnot allow other machines in the network to access other than machine which it came from as in case of applets. What you can do is if the other machine is also based on webserver or app server .. you can upload the file as it gets to that page do the process.
    I would like to hear more on my comments..
    Suggestions ??
    Ban

  • Copying files from local computer to a remote server which is not in Domain and with username and password?

    "I have one workstation with static IP, Wants to create batch file to log in to this,using user name and password, copy back up files from that workstation to my desktop with batch file, please help
    I am currently using batch file for back up for domain servers with robocopy commands in batch file  but one of the workstation is not in domain and has static ip , also it has username and password,
    Wants to create batch file on my desktop to log in this server---with username and password,, copy files from particular folder and paste it on my desktop in particular folder or auto create that folder,
    please help, "
    P Dave

    JRV,
    I can understand that, 1stly I am not a scripting guy, I know very very basic of this,
    2ndly, I need help , I am not asking anyone here to write code for me, I have already wrote that but its not doing which its suppose to do,
    check below screen shot, after running suggested script, it has mapped drive ,
    now I do not want to do that, I want just files to copy from that machine to my machine, and want script which I can run from any PC,
    Tried with UNC PATH as well, but not making any difference, its keep mapping that server drive to my computer
    P Dave
    JRV,
    I can understand that, 1stly I am not a scripting guy, I know very very basic of this,
    2ndly, I need help , I am not asking anyone here to write code for me, I have already wrote that but its not doing which its suppose to do,
    check below screen shot, after running suggested script, it has mapped drive ,
    now I do not want to do that, I want just files to copy from that machine to my machine, and want script which I can run from any PC,
    Tried with UNC PATH as well, but not making any difference, its keep mapping that server drive to my computer
    P Dave
    Bill - he still sees that "connection" although it isn't mapped it is attached temporarily.
    P - Log off and log back on and the attached connection will be gone.  It is temporary.   Again - knowing the basics of WIndows would let you know this.
    We have given you all of the answers that are possible.  There is no other way unless you have installed things like PowerShell and PowerShell remoting or an FTP server.
    If you do use a drive it can be just as easily deleted after you have finished the copy.
    Again: "NET USE /?" will tell you all of the options.
    Saying you know nothing is not an excuse for not thinking or looking more deeply into the suggestions made by those trying to help you.  This is not a MIcrosoft support forum or help desk.  It is a forum for admiinistrative scripting and assumes
    that those coming here are technically trained or experienced in the basics of Windows technology.
    ¯\_(ツ)_/¯

  • How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    Sorry, yes this is Microsoft Excel.  The Microsoft XP has Excel files denoted as xl, the later versions of Microsoft Excel are denoted as xls files.  The later verions of Microsoft Excel open the xl files OK, does Excel for Mac not able to do this?

  • Need to copy files from multiple machine to multiple locations on server in daily basis

    My scenario is below:
    1. I have 20 machines and data for backup would be on only in one folder of each machine.
    2. Need to create 20 folders in server and copy the corresponding machine's data to the respective folder daily.
    3. Data copy should be appending (Should not be duplication).
    4. Also need notification if any failure.
    Let me know whether schedule task / script which would be better to server this

    Create a robocopy script to copy data from 20 different folders,
    In Robocopy command you have switches to append the data,
    You can enable logging for this script, If its failes / error - it will update in log file.
    Create a schedule task and run this script according to your timings,
    You an refer Robocopy article for more information :
    http://technet.microsoft.com/en-us/library/cc733145.aspx
    Regards,
    Manjunath Sullad

  • Copying files from ASM to Remote ASM, Fails.

    Dear All,
    I am trying to copy files from ASM to Remote ASM disk groups, failing with the following error,
    ASMCMD-8201: (Bad argc for RDBMS:ASMCMD-8201) , any idea.
    Syntax: cp -- port 1521 +RECO_ABC/ABC/BKP/xyz.dbf sys@hostname.+ASM1:+RECO_XYZ/XYZ/xyz.dbf
    Thanks.

    cp -ifr <source file name> <user_name>@<host_name>.<Port Number>.<SID>:<targer path>/<target file name>
    user_name@host_name.<Port Number>.<SID>
    The user_name, host_name, and SID are required. The default port number is 1521.
    reason for error :
    It could be due to following reason.
    * not able to reach remote host.
    * Remote host listener is down.
    * Remote ASM Instance is not registered with listener and running non-default port.
    * sysasm remote connection does not work.
    * Incorrect password given for sys user.
    * Remote ASM Instance password file missing.
    We need to enable additional tracing for asmcmd connection to get a exact failure message.
    ++ set DBI_TRACE environment variable for asmcmd perl tracing.
    export DBI_TRACE=1
    ++ Now connect using asmcmd and re-produce the issue.

  • Powershell - Need to push a file to a remote machine (not in domain or workgroup)

    Scenario
    HomeComputer
    MyCloudServer
    No WorkGroup or Domains between the 2
    All I need to do is push a file from my local machine 'HomeComputer' to 'MyCloudServer'.  What is the best way to do this?
    If I use Invoke and -ConnectUri my session is on the remote so Copy-Item only works for items already on 'MyCloudServer'.  I want to push the file from my desktop to this server.  I have all the rigts necessary to the box. 
    I tried start-BitsTransfer but can't seem to get that working
    Start--BitsTransfer D:\Testfile.txt
    https://MyCloudServer.net:5986/testFolder/testFile1.txt -transferType Upload -Authentication "" -Credential ""
    I get the requested URL does not exist on the server.  Which makes sense since testfile1.txt doesnt exist yet.  I'm trying to upload it right?? 
    What is the best method for transferring a file with powershell to remote computer not in a workgroup or domain?  Preferrably through IP I would think.  
    

    It's Azure  and they have specific ports on the VM's called endpoints for allowing remote connections.  By default the endpoint for powershell is setup out of box on Windows Servers.  I believe the port is 5986.  I've been able to connect
    using this port with powershell and have been able to manage resources remotely through powershell. I'm looking for help pushing a file through some kind of copy process in Powershell to the remote server.  Is this not possible?? 

  • Unable to Copy File From Terminal Server to Client Share

    Hi
    For years client have been able to copy files from our Windows 2003 Terminal Server to their local workstation using:
    copy myfile \\tsclient\mydrive\myfolder
    However we upgraded to Windows 2012 Server R2 and now Windows 7 Pro clients cannot copy files.  The copy function creates the file name in their local folder but no content is sent after maybe 20 minutes or so the copy function times out and they get an
    error message saying that the application was unable to write to the file.  I have tried this function with my Windows 8.1 workstation and the file copies properly and it works fine for older Windows XP clients.  Does anyone know why Windows 7 clients
    are experiencing this issue.
    Thanks
    Simon

    Hi Simon,
    Initially please use latest RDP version 8.1 for windows 7 and check result. 
    What’s the file size which you are copying?
    Does this happens for all users and on all computers?
    You can try below method might resolve your case.
    1. Login to remote computer using Remote Desktop (RDP). 
    2. Open Task Manager in the remote machine
    3. Click the "Process" tab
    4. Locate a program called "rdpclip.exe"
    5. Right click and select "End process" to kill this program
    6. Click on "File" menu in the task manager and select "New Task (Run)"
    7. Type rdpclip.exe and press the button to start the process.
    By killing existing instance of the rdpclip.exe and restarting the program, you can get your copy paste work again in your remote desktop.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How can I restore files from a time machine back-up of my iMac to an EXTERNAL hard drive connected to MacBook Pro. Using Migrat

    I would like to restore files from a time machine back-up of my iMac to an EXTERNAL hard drive connected to MacBook Pro. When I tried using Migration Assistant it only gives me my internal hard drive as an option to restore to. The internal hard drive on my macbook isnt large enough to store the files.

    Welcome to Apple Support Communities
    OS X can only restore data to the drive where Time Machine backed up files from.
    If you want to restore files from the Time Machine backup onto an external drive, your only option is to access to the Time Machine drive manually (open a Finder window and choose your Time Machine drive in the Finder sidebar), navigate through its folders and copy the files you want to the external drive

  • Safely copying files from Target Disk Mode to External USB. Advice?

    Just got a new iMac and transferred my system and important files to it from my old iMac. However, a partition on my old iMac has files I want to move to my new iMac so they can be included in Time Machine backups while others I want to move to another external hard drive since I have physical copies of most of those files elsewhere.
    I can connect my old iMac to the new via Target Disk mode and copy the critical files from Mac-to-Mac easily and quickly enough. What I want to know is if I’m safe to copy the other files from the TDM-connected iMac to a USB drive.
    I’ve read that having other devices connected to your Mac while another Mac is connected via TDM can result in corrupted files. Is this true? Is it unsafe to copy files from a TDM Mac to an external USB drive?
    If it is safe, is it best to connect the USB drive to the new Mac or to the old one while it’s in TDM? There’s a lot of data so I’m wondering about transfer times. One method would see files going over Firewire through the new iMac to a USB drive, while the other would go from TDM-connected Mac directly to a USB drive connected to its own USB port. That is:
    TDM iMac > New iMac > USB Drive connected to New iMac
    or
    TDM iMac > USB Drive connected to TDM iMac
    I have limited space on my internal drive and I also don’t want to copy-hop from TDM iMac to New iMac then copy from New iMac to USB drive. I'd like to go directly from old drive to external USB drive if it's safe.
    So I’m looking for advice on the best way to connect devices in order to cut down on copying time and number of copies, and to do it safely without corrupting data. Any advice is appreciated!

    I've used Migration Assistant already to move all of my immediately necessary data and settings over. This other data was on a separate partition and I'm unable to copy all of the data over to my new drive due to lack of space.
    Things are complicated by the fact that I need to change some of my externals over to Time Machine ready backups. Previously I was using 1 TB and a 2 TB drive for TM and another 2 TB drive for general backups/archiving. Now I need to juggle things around so that both 2 TB drives are for TM and the 1 TB is used for archiving.
    An important point I should have mentioned is that I can't use my old iMac normally due to a GPU problem that seizes the system up. This is the reason I can't just copy stuff directly from old iMac to external USBs.
    I'm interested to know if what I described above is safe and if there are any time savings or benefits for copying through my new iMac or connecting the externals directly to the old iMac in TDM.

  • How to copy files from a color classic w/broken floppy drive to an i-book ?

    How to copy files from a color classic w/broken floppy drive to an i-book ?
    I have a Coplor Classic with a system 7.
    There is no ethernet on color classic. The floppy drive is dead.
    I need some important files I have on the color classic...
    How do I connetct them to transfer files?...

    The easiest way, as AppleIIFreak has suggested, is probably to find another older Macintosh computer (with the round MiniDIN printer port) to be used as an intermediary. You could then connect the two machines by means of LocalTalk cabling, or just a plain Mac serial printer cable between the printer ports, and then set up file sharing. From that other Mac, you should be able to forward the files via Ethernet, diskettes (if you have an external USB floppy drive for the iBook) or email (Internet).
    If a second old Mac is not available, you may want to try something else. It would not be unusual for a Color Classic to have ClarisWorks already (obviously, one cannot expect anything new to become installed). If so, that program suite would contain a communications part. This means that you could connect an external serial modem, and send the files over the phone lines (or locally, modem-to-modem, in principle as in KB article # 22229; sometimes a very simple home-built line simulator may have to be added) to any other computer using a terminal emulation application with file transfer capabilities. It would also be possible to connect the modem port directly to the serial port of a PC, through a combination of a Mac modem cable (MiniDIN-8M to DB-25M) and a standard PC null-modem cable (DB-25F to DB-9F).
    Jan

Maybe you are looking for

  • How many iphones can you sync with itunes

    I like to know how many iphones I can sync with itunes and want to know how I can erase other iphones what I sync with itunes before Can someone please tell me how I can do this?

  • Delivery Date for Purchase Order

    Experts, which table contains the delivery date for a Purchase Order (NB). ? Thanks in advance Jörg

  • User exit on clearing in Txn: FB05

    Hi All, Is there any user exit or badi which gets invoked when we do the <b>clearing using transaction: FB05</b>. (I know the available userexits for this transaction.) <b>Please let me know the userexit which will suit my requirement.</b> Thanks in

  • FNRA - Loan Accrual and deferral

    Hi Experts, Appreciate your help to enlighten me why I encounter "No accruals/deferrals amounts determined"  after running t.code FNRA. Can somebody know prerequisite of the report. Thank you very much.

  • PSE8: Can Tools In Toolbar Be Dragged Up And Down To Reposition?

    The tools in my PSE8 toolbar are in a different position from my Photoshop CS3. For instance, the Zoom tool is next to the top in PSE8 but in PS CS3 it is at the bottom, above the foreground and background colours. For speed and efficiency when swapp