header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
PowerShell remoting equivalent of scp
Last Post 30 Apr 2009 11:53 AM by 0ptikGhost. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Dave ClarkeUser is Offline
New Member
New Member
Posts:1
Avatar

--
18 Feb 2009 05:35 PM
    Hi

    I'm trying to use PowerShell v2 to administer a Windows Server 2008 r2
    server (I'm trying to move my web hosting from an OpenBSD/Apache box
    to IIS7 on W2K8r2). I'm looking for the equivalent of rsync or scp
    (secure copy) to deploy files from my development environment into
    the new server. The server is Internet-facing so I want to run the
    minimum services required and plug up the firewall to help reduce the
    attack surface, i.e. no ftp and no file sharing. I was hoping that
    PowerShell Remoting or WinRS would be the answer (or it would be once
    I managed to get my configuration issues sorted).



    I guess the larger question is, without file sharing (i.e. no UNC
    paths), BITS, ftp, how do I deploy files from Vista to a (non-domain)
    W2K8r2 server? It seems weird that I can use MMC remotely to modify
    the firewall, view the event log, start/stop services, etc but I can't
    get a file from a to b. Given I already have a secure remote PowerShell
    connection, I had kind of assumed (hoped) that there would be a file transfer
    cmdlet that allowed some form of secure file copy between the endpoints.
    Hopefully I'm just being dense. Please point me in the right direction.



    Thanks
    - Dave
    0ptikGhostUser is Offline
    Basic Member
    Basic Member
    Posts:296
    Avatar

    --
    30 Apr 2009 11:53 AM
    Instead of pushing the copy try pulling the copy.

    Instead of trying to do the equivalent:
    (on dev) copy localpath\files.* remotepath

    Try executing the command on the remote host:
    (on remote) copy remotepathtodev\files.* localpath

    This second approach requires that you have network access to dev from remote.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer