+ Reply to Thread
Results 1 to 5 of 5

Thread: *HELP PLZ* How can I activate ssh logging?

  1. #1
    allofus is offline x10 Sophmore allofus is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Wetherby, West Yorkshire, England
    Posts
    183

    Question *HELP PLZ* How can I activate ssh logging?

    Hi,

    I have a vps package

    X5

    ubuntu-9.04-x86 is our chosen OS.


    My question is;
    How do I initiate SSH hisory logs?

    I also have a shared hosting package - corporate - When I use putty to access this server I can press the up arrow and scroll through previous administered commands and I would like to be able to do the same with the VPS.

    Many of the commands I use are repeats and at present I use notepadd++ and cut/paste to the terminal when administering the VPS.


    I am only using 10% of our available ram and effectively 0% available space so installing an application should not be an issue for us. I am fairly familiar with using SSH and the VPS but I am not sure which application would best serve?

    Please advise.

  2. #2
    toyowheelin's Avatar
    toyowheelin is offline Community Advocate toyowheelin is an unknown quantity at this point
    Join Date
    Dec 2009
    Location
    Kirkland WA
    Posts
    153

    Re: *HELP PLZ* How can I activate ssh logging?

    All of the issues you listed should be enabled by default, for instance the "ssh logs" should be stored in /var/log/auth.log, and by default ubuntu uses bash shell and should also automatically store previously used commands.

  3. #3
    allofus is offline x10 Sophmore allofus is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Wetherby, West Yorkshire, England
    Posts
    183

    Re: *HELP PLZ* How can I activate ssh logging?

    Quote Originally Posted by toyowheelin View Post
    All of the issues you listed should be enabled by default, for instance the "ssh logs" should be stored in /var/log/auth.log, and by default ubuntu uses bash shell and should also automatically store previously used commands.
    hmm

    Ok I did SSH into another account I have on the server and you are right.... *blushes*

    It seems that the ***vm account is the only account that does not do this so I guess it is time to change a habit and login as roo instead of ***vm.


    Thanks for the heads up toyowheelin.
    Edit:
    If I may ask another question....


    with my ***vm account I used the hypervm web interface to add an ssh key.

    Can you advise me of how I can use the same key when I connect direct via one of my vps IP's?

    Thanks in advance.
    Last edited by allofus; 02-14-2010 at 07:43 AM. Reason: Automerged Doublepost

  4. #4
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: *HELP PLZ* How can I activate ssh logging?

    Do you mean that you want to run commands you previously ran, but then closed SSH and when you return, you want to be able to access those commands again by using the arrow keys?

    If this is what you want, type 'screen' without ', then enter to accept the license. Then use the commands you usually do. Next time you login to SSH, type 'screen -ls' without ', to see all the detached sessions. Then, write 'screen -r *name of the session listed in screen -ls*' without '. Now you can access previously ran commands with the arrow keys. This will also allow you to see all the commands you ran, as screen keeps one session, so it looks like you never logged of.
    Last edited by galaxyAbstractor; 02-14-2010 at 08:47 AM.

  5. #5
    allofus is offline x10 Sophmore allofus is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Wetherby, West Yorkshire, England
    Posts
    183

    Re: *HELP PLZ* How can I activate ssh logging?

    Quote Originally Posted by vigge_sWe View Post
    Do you mean that you want to run commands you previously ran, but then closed SSH and when you return, you want to be able to access those commands again by using the arrow keys?

    If this is what you want, type 'screen' without ', then enter to accept the license. Then use the commands you usually do. Next time you login to SSH, type 'screen -ls' without ', to see all the detached sessions. Then, write 'screen -r *name of the session listed in screen -ls*' without '. Now you can access previously ran commands with the arrow keys. This will also allow you to see all the commands you ran, as screen keeps one session, so it looks like you never logged of.
    Thanks,

    I will give it a try, but since I can connect as root without using my ***vm access I think I will just do that. The history is already available to me using the arrow keys.


    Ok I tried it
    Code:
    root@localhost:/# screen -ls
    Code:
    There is a screen on:
            25958.pts-2.localhost   (02/14/10 15:04:46)     (Detached)
    1 Socket in /var/run/screen/S-root.
    There is no name that I can see. I tried S-root, i tried 1, i tried Detatched...

    adding a password and connecting via one of the vps ip's seems to be the simplest option available to me.

    Thanks so much for the assistance all the same vigge_sWe.
    Edit:
    ok, the name

    Code:
    screen -r 25958.pts-2.localhost

    This did work for me.

    going direct to root still makes more sense to me and I had not thought of it before, der!!!!

    The history logs are right there as suggested, arrow up on putty to scroll through past logs. Just what I wanted.

    Thanks again peeps.
    Last edited by allofus; 02-14-2010 at 09:15 AM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. SSH Access
    By jenawan in forum Free Hosting
    Replies: 3
    Last Post: 01-31-2010, 04:47 AM
  2. How to activate my account
    By biti007 in forum Free Hosting
    Replies: 1
    Last Post: 10-30-2009, 07:09 PM
  3. Trouble logging in
    By herbalking in forum Free Hosting
    Replies: 6
    Last Post: 10-13-2009, 03:25 AM
  4. ATTN X10 STAFF: SSH Acess. Need Support ASAP.
    By epiccentury in forum Free Hosting
    Replies: 1
    Last Post: 10-15-2008, 01:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers