SCP problem

Status
Not open for further replies.

Krist8

Dabbler
Joined
Mar 27, 2017
Messages
26
Hi, noob here. I am using 9.10.2-U3. I am trying to setup OpenVPN in jail. The final step is to copy the user .crt and .key files. I used scp like this
Code:
root@OpenVPN:/ # scp ks@OpenVPN:/mnt/NAS/OpenVPN/mnt/keys/itx-shum.crt ks@freena
s.local:/mnt/NAS/ks															 
ks@openvpn's password:														 
Host key verification failed.												   
lost connection																 

I am trying to copy the files from openvpn to the main storage location so I can copy it to an external pc.
The user ks@openvpn has an account and a password. The user ks@freenas.local has the same password.
I can also go into freenas.local from external computer using ssh, but once in I do not know what to do to copy the files. Here is what I did using ssh
Code:
root@debian:/home/shum# ssh ks@192.168.0.2
ks@192.168.0.2's password: 
Last login: Fri May 12 12:14:44 2017 from 192.168.0.81
FreeBSD 10.3-STABLE (FreeNAS.amd64) #0 r295946+21897e6695f(9.10.2-STABLE): Thu Apr 20 17:58:31 UTC 2017

	FreeNAS (c) 2009-2016, The FreeNAS Development Team
	All rights reserved.
	FreeNAS is released under the modified BSD license.

	For more information, documentation, help or support, go here:
	http://freenas.org
Welcome to FreeNAS
[ks@freenas ~]$ ls
2007_01 Sun Rise	my_pictures		raw-pictures-2
Pictures		pictures-email		raw_pictures
gallery3		piwigo-backup-17-03-13
my_music		piwigo_galleries
[ks@freenas ~]$ 


Please help. Thanks.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
root@OpenVPN:/ # scp ks@OpenVPN:/mnt/NAS/OpenVPN/mnt/keys/itx-shum.crt ks@freena
If you're already logged into the openvpn jail, there's no reason to specify the ks@openvpn for the source path.
 
Status
Not open for further replies.
Top