Accessing the Production Server: Difference between revisions
No edit summary |
|||
Line 9: | Line 9: | ||
The command to connect to the Expertiza server is: | The command to connect to the Expertiza server is: | ||
<pre>ssh <unity_id>@expertiza.ncsu.edu</pre> | <pre>ssh <unity_id>@expertiza.ncsu.edu</pre> | ||
=Obtaining Private/Public Key Access= | |||
Setting up a private/public key pair will allow access to the Expertiza server with the rails user to run such commands shown below: | |||
<pre> | |||
cap load_production_data | |||
cap deploy | |||
cap deploy:restart | |||
</pre> | |||
==Creating a Key Pair== | |||
To create your private/public key pair, run the following command: | |||
<pre>ssh-keygen -trsa -C "your_email@example.com"</pre> | |||
==Retrieving Your Public Key== | |||
Copy and paste the output of the following command in an email to expertiza-support@ncsu.edu asking for private/public key access to the production server: | |||
<pre>cat ~/.ssh/id_rsa.pub</pre> |
Revision as of 04:37, 7 February 2013
Introduction
The production server is located at http://expertiza.ncsu.edu. It is firewalled at NC State University and thus requires VPN or tunneled connection. This article explains both methods.
VPN
The instructions to connect to NC State's VPN are located at http://vpn.ncsu.edu
Tunneling Via SSH
If you have access through NC State, you can first ssh into a publicly accessible server such as remote.eos.ncsu.edu using your unity ID before then connecting via SSH to expertiza.ncsu.edu.
After Connecting Through the Firewall
The command to connect to the Expertiza server is:
ssh <unity_id>@expertiza.ncsu.edu
Obtaining Private/Public Key Access
Setting up a private/public key pair will allow access to the Expertiza server with the rails user to run such commands shown below:
cap load_production_data cap deploy cap deploy:restart
Creating a Key Pair
To create your private/public key pair, run the following command:
ssh-keygen -trsa -C "your_email@example.com"
Retrieving Your Public Key
Copy and paste the output of the following command in an email to expertiza-support@ncsu.edu asking for private/public key access to the production server:
cat ~/.ssh/id_rsa.pub