Basic Linux Help Needed

memnarc

New Member
This is my files:

[email protected]:/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
[email protected]:/etc/openvpn/easy-rsa/keys#


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


And also the following

[email protected]:/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:

[email protected]:/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.
[email protected]:/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