scp file from jail to local desktop

Status
Not open for further replies.

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
i know this should be simple and i know how to copy a file from the regular data on freenas to my local desktop through the CLI, but i can't figure out the proper syntax for copying a file from within a jail to my local machine.

Code:
scp username@remote:/file/to/send /where/to/put


what additional information do i need in order to point to the path within a jail (in my instance, plexpy @ IP 192.168.0.132

thanks for the help!
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
thanks for the reply, I do have SSH enabled (that is how i am getting into the box locally in the first place).

are you saying there is a separate setting to enable SSH access to a jail that is separate to the SSH toggle in the FreeNAS GUI?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
SFTP is your friend for this one. ;)
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Yes. A jail is a container of a freebsd install. It has all of its own services.
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
@Jailer thanks for the tip, got it. didn't know i could access the jails that way.

thanks for your help as well @pirateghost
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
what additional information do i need in order to point to the path within a jail
If your jails dataset is /mnt/<poolname>/jails then the path to the data in the jail is /mnt/<poolname>/jails/<jailname>/<pathfromrootofjail>
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
@Robert Trevellyan aww you're right. i don't know why i didn't think of the absolute path for each jail and that it does indeed reside on the dataset. of course i knew this but i think i got hung up on trying to extra the path when i was inside terminal and logged into the jail using "jexec 2 tcsh"

thanks!
 
Status
Not open for further replies.
Top