amuck-landowner

Basic Linux Help Needed

memnarc

New Member
This is my files:

root@arcx:/etc/openvpn/easy-rsa/keys# ls
-server.crt  01.pem  dh1024.pem      index.txt.old  ta.key
-server.csr  ca.crt  index.txt       serial
-server.key  ca.key  index.txt.attr  serial.old
root@arcx:/etc/openvpn/easy-rsa/keys#


Trying to copy server.crt and server.key into openvpn which is two directories above it.
Tried the following:
 
root@arcx:/etc/openvpn/easy-rsa/keys# cp server.key ../../
cp: cannot stat `server.key': No such file or directory


And also the following

root@arcx:/etc/openvpn/easy-rsa/keys# cp -server.key ../../
cp: invalid option -- 'e'
Try `cp --help' for more information.

These instructions are from the LowEndBox OpenVPN tutorial. 

Thank you!
 

vanarp

Active Member
I see @jarland provided the solution well before me :)

Let me explain why the syntax solves the problem. Double hyphens tell the command that whatever follows them are only positional parameters but not options to the command itself.
 

memnarc

New Member
Thanks for all the helpful posts.  I've been fiddling with the instructions and have gotten further down the tutorial. 

Command:

sudo /sbin/iptables -A FORWARD -i venet0 -o tap0 -m state –state RELATED,ESTABLISHED -j ACCEPT

Error Message:

root@arcx:/etc/openvpn/easy-rsa# sudo /sbin/iptables -A FORWARD -i venet0 -o tap0 -m state -state RELATED,ESTABLISHED -j ACCEPT
Bad argument `RELATED,ESTABLISHED'
Try `iptables -h' or 'iptables --help' for more information.
root@arcx:/etc/openvpn/easy-rsa# sudo /sbin/iptables -A FORWARD -i venet0 -o tap0 -m state -state RELATED, ESTABLISHED -j ACCEPT
Bad argument `RELATED,'
Try `iptables -h' or 'iptables --help' for more information.
 
 
Top
amuck-landowner