How can we copy a directory from Global to Non-global zone?

Hi All,

How can we copy a directory from global zone to non-global zone using SCP command?

There is no need to use scp. "cp" will do it assuming you have the proper permissions.
Otherwise, scp configuration has the very same requirements as those to use in a two hosts setting.

Maybe u can use this command

scp <name file> username@IP address:/directory destination

what is the user name is it zone name zone name ?

username is your login to the zone

Again, why do you want to use scp when cp would just work ?

maybe secure

Being in the global zone, you can use cp to just copy the file, into the zone. Remember the zone LIVES in the global zone, and you just have to copy the file to where the zone phyiscally lives within the structure of Global zone. For example. I keep all my zones in /zones, so I would just copy the file to /zones/name-of-zone/root/../../..

SBK

Nothing as secure. From the global zone as root, you have all the permissions to copy files from one zone to another. Its just a structure of files and directories. Even if your local zones on different disks, you wont have issues