| Private Hosting Questions about VPS, dedicated servers and colocation. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
MR. SECURITY
Excelling Contributor
Joined in Jun 2004
Lives in Orlando, USA
Hosted on SH129
722 posts
Gave thanks: 4
Thanked 1 Time in 1 Post
|
Backing up config files
It was suggested to me to make a backup of a config file before I make any changes that could lock me out or do something I didnt want it to do. In this case, it was me locking myself out of SSH. I have done it twice (it took two times to figure out that the port I used, couldnt be used). How do I make a backup of a file and how do I restore it, even when I loose my SSH access but I can still access WHM? Do I put this file on my computer or the server? My Linux skills are very beginner-ish so dont blow me away. An code example would be wonderful. Thanks.
Tracer
__________________
2005 Surpassies: Winner of Most Skilled Wordsmith SH129 - Power SH81 - OC5 |
|
|
|
|
|
#2 (permalink) | |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Quote:
John
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
|
#3 (permalink) |
|
MR. SECURITY
Excelling Contributor
Joined in Jun 2004
Lives in Orlando, USA
Hosted on SH129
722 posts
Gave thanks: 4
Thanked 1 Time in 1 Post
|
Well, how? I need to backup my SSH config file because I locked myself out by using a port that was blocked. I have done it again (support didnt mention that it was blocked the first time, they just said they would restore it). How do I restore the SSH config file if I lost SSH? All I got is WHM. Thanks for your help.
Tracer
__________________
2005 Surpassies: Winner of Most Skilled Wordsmith SH129 - Power SH81 - OC5 |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
|
Far as I know, you can execute any Shell Command via PHP... http://php.net/shell_exec
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
|
|
#5 (permalink) |
|
MR. SECURITY
Excelling Contributor
Joined in Jun 2004
Lives in Orlando, USA
Hosted on SH129
722 posts
Gave thanks: 4
Thanked 1 Time in 1 Post
|
Ok, I got another problem. I am trying to save a key in my ~/.ssh/authorized_keys file and it wont let me save it. It says [ Cannot open file for writing: Permission denied ] How do I give myself permission? Thanks.
Tracer
__________________
2005 Surpassies: Winner of Most Skilled Wordsmith SH129 - Power SH81 - OC5 |
|
|
|