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

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



Sponsored Links
  #2  
Old 11-02-2003, 12:47 AM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,009
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.

__________________
Like us on Facebook to qualify for discounts!
http://www.sprintserve.net
Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
Services: | Managed Multiple Cores 64bit Servers | Server Management |

  #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 .

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

  #5  
Old 11-02-2003, 01:14 AM
sprintserve sprintserve is offline
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,009
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.

__________________
Like us on Facebook to qualify for discounts!
http://www.sprintserve.net
Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
Services: | Managed Multiple Cores 64bit Servers | Server Management |

  #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

  #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

  #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.

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

__________________
Like us on Facebook to qualify for discounts!
http://www.sprintserve.net
Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
Services: | Managed Multiple Cores 64bit Servers | Server Management |

  #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

Related posts from TheWhir.com
Title Type Date Posted
TwinStrata Releases CloudArray v4.7 with New DR and Testing Capabilities Web Hosting News 2013-08-29 11:39:41
Barracuda Network Releases Version 5.4 of Cloud Backup Solution Web Hosting News 2013-08-26 12:18:47
European Commission Seeks Experts to Build Transparency into Cloud Contracts Web Hosting News 2013-08-02 10:48:15
CloudFlare Railgun Offers Hosting Customers One-Click Dynamic Caching Web Hosting News 2013-02-27 10:44:29
NetDNA Launches Integrated CDN for Developers to Optimize Web Application Performance Web Hosting News 2012-11-19 15:30:18


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:
WHT Membership
WHT Membership



 

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?