Copy directory betweeen Solaris 10 zones

I have a Solaris 10 box with 3 zones. I want to sftp the certificate keystore file between zones.

Before hand I logged onto Zone1 and :___ to the keystore directory
    chmod -R 777 keystore
    chown -R sysadmin keystore

then logged into Zone2 as sysadmin and opened terminal
   su
    #sftp sysadmin@zone1(FQDN)
entered PW
    get keystore
result:  Cannot download directory

I am MCSE by trade and fumble thru Unix. To top it off and make it even worse I am dealing with Solaris 10 which I find theres not any good ref books on using it that I have found.
LVL 1
need4answersAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
omarfaridConnect With a Mentor Commented:
sftp is not meant for dir transfer, use scp -r

scp -r username@remotesystem:/path/to/remdir /path/to/local
0
 
need4answersAuthor Commented:
Worked great. You should write a book, Ive been looking for the answer for past 2 days.
0
 
omarfaridCommented:
I can write a book, but where is the sponsor :)
0
 
TintinCommented:
If you have access to the global zone, you can do a simple cp to each of the zones.
0
All Courses

From novice to tech pro — start learning today.