hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : some one know how to clear ssh cache ?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

some one know how to clear ssh cache ?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2003, 12:38 AM
samshost samshost is offline
Disabled
 
Join Date: Aug 2003
Posts: 19
Unhappy

some one know how to clear ssh cache ?


Do some one know to clear ssh cache ?


i.e, i tyep a few commands on the server from ssh and need to clear the hostory.




Samson

Reply With Quote


Sponsored Links
  #2  
Old 11-02-2003, 12:47 AM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,000
and why do you need to clear the history. That's kind of suspicious.

Well you need to have root on the server, and if you have root, I doubt you will be looking at clearing the history.

But what you need to do is to first logout.

Then login again, and go to the particular user directory and look for a file called .bash_history. Your history would be there, and depending on your settings, the no. of lines stored.

__________________
••• 100% Customer Satisfaction!!! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

Reply With Quote
  #3  
Old 11-02-2003, 01:12 AM
samshost samshost is offline
Disabled
 
Join Date: Aug 2003
Posts: 19
Wink nothing

Nothing suspicious my dear friend, that was an question out to one of my friend on an interview .

Reply With Quote
Sponsored Links
  #4  
Old 11-02-2003, 01:12 AM
samshost samshost is offline
Disabled
 
Join Date: Aug 2003
Posts: 19
sorry

and i have just checkedon my system that never woked

Reply With Quote
  #5  
Old 11-02-2003, 01:14 AM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,000
You create interview questions you have no answers to?

It will work. You must log out from ssh. The current session history doesn't appear till the next time you log in and you must login as root.

__________________
••• 100% Customer Satisfaction!!! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

Reply With Quote
  #6  
Old 11-02-2003, 02:00 AM
OverlordQ OverlordQ is offline
Web Hosting Guru
 
Join Date: Jul 2003
Posts: 277
there's many ways to do it.

Code:
ln -sf /dev/null ~/.bash_history
ln -sf /dev/urandom ~/.bash_history
export HISTFILE=/dev/null
and so forth

__________________
Perl
Java
SQL

Reply With Quote
  #7  
Old 11-02-2003, 02:37 AM
taz0 taz0 is offline
WHT Addict
 
Join Date: Oct 2001
Location: Canada
Posts: 157
history -c
in bash

Reply With Quote
  #8  
Old 11-02-2003, 03:18 PM
samshost samshost is offline
Disabled
 
Join Date: Aug 2003
Posts: 19
Thumbs down sprintserve

my Dear Friend,


you look like you are tooooo suspicious of anything ?



That question as out to my freind by some other guy in the interbiew and not the one i prepared.

Reply With Quote
  #9  
Old 11-02-2003, 03:26 PM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,000
Not at all. I did provide one of the many solutions. If I am, I wouldn't be giving that.

__________________
••• 100% Customer Satisfaction!!! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••

Reply With Quote
  #10  
Old 11-02-2003, 06:28 PM
Slidey Slidey is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: UK
Posts: 2,560
unset HISTFILE when you login will stop there being a history

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Certified Hosting Deploys Varnish HTTP Caching for Faster Hosting Services Web Hosting News 2012-02-28 14:10:30
Web Host Lightning Base Launches Version 2 of WordPress Hosting Web Hosting News 2012-02-01 12:29:53
Thousands of Sites Mislabeled Phishers After OpenDNS Blocks Google Hosted Scripts Web Hosting News 2012-01-06 15:37:40
Web Host Amazon Web Services Launches ElastiCache Service Web Hosting News 2011-08-23 17:53:00
WordPress Forces Password Reset After Suspicious Activity on Plugins Detected Web Hosting News 2011-06-22 14:56:47


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?