Linux question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • etech
    Confirmed User
    • Feb 2004
    • 1148

    #1

    Linux question

    How do i add a server permanently to another servers ssh lists, so i wont have to type in a pass each time i ssh into it. or if i wanna do a scp.
  • power182
    Confirmed User
    • Nov 2002
    • 136

    #2
    Very bad idea, it leaves a big security hole... but if you want to do it, its your server...

    http://www.csse.uwa.edu.au/~ryan/tec...-password.html

    Comment

    • Superterrorizer
      Confirmed User
      • Sep 2003
      • 509

      #3
      Originally posted by power182
      Very bad idea, it leaves a big security hole... but if you want to do it, its your server...

      http://www.csse.uwa.edu.au/~ryan/tec...-password.html

      Yeah, because using your dogs name as a password for every single site, server and ftp account is far more secure than using key pairs.

      Comment

      • power182
        Confirmed User
        • Nov 2002
        • 136

        #4
        Originally posted by Superterrorizer
        Yeah, because using your dogs name as a password for every single site, server and ftp account is far more secure than using key pairs.

        How did you hack my rover account??!!?? Never said that was a good practice either, both leave you vulnerable. I would advise against both. What I love are the people who do not disable root ssh login (which is on by default)?. They have the username, the password is all that?s left, and once they have that, they own your box. Amazing the poor practices most users employ.

        Comment

        • Robx
          Confirmed User
          • Nov 2004
          • 357

          #5
          Here's the solution: http://www.rsasecurity.com/

          Contact Us About Getting Your Paysites Exposed To Millions Of People On The Peer To Peer Networks!
          ICQ 124-249-781

          Comment

          • etech
            Confirmed User
            • Feb 2004
            • 1148

            #6
            Found this nice script for the purpose, i thought i would share

            #/bin/sh
            # RSA keys may be subject to export restrictions

            if [ ! -n "$1" ]
            then
            echo "Usage: `basename $0` [email protected]"
            exit
            fi

            if [ ! -e ~/.ssh/id_rsa.pub ]
            then
            echo "Generating RSA key"
            ssh-keygen -t rsa
            fi

            echo "Copying local SSH pub_key to $1"
            echo "Please enter password for remote account:"

            # Use scp to opy key to remote temp file

            scp ~/.ssh/id_rsa.pub $1:~/.ssh/authorized_keys.tmp

            # Append key to ~/.ssh/authorized_keys

            echo "Please enter password again to append key to remote 'authorized_keys' file"
            ssh $1 "cat ~/.ssh/authorized_keys.tmp >> ~/.ssh/authorized_keys; rm ~/.ssh/authorized_keys.tmp; exit"

            Comment

            • SinisterStudios
              Confirmed User
              • Nov 2003
              • 3087

              #7
              Originally posted by power182
              How did you hack my rover account??!!?? Never said that was a good practice either, both leave you vulnerable. I would advise against both. What I love are the people who do not disable root ssh login (which is on by default)?. They have the username, the password is all that?s left, and once they have that, they own your box. Amazing the poor practices most users employ.
              I agree, it amazes me that poeple dont disable root remote login, but then again there are alot of people running around saying they are linux experts that have no idea how to work with linux
              SEOIP.com
              Multiple IP Webhosting
              Shared and Dedicated IP's - Multiple Class A's - From $1.99/ip

              Comment

              • SplitInfinity
                Confirmed User
                • Dec 2002
                • 3047

                #8
                Firewall it, lock it down, encrypt it and always pay attention to it.
                :-)

                Comment

                • CheneyRumsfeld
                  Confirmed User
                  • Sep 2004
                  • 1341

                  #9
                  after you are done with the server please enter your username and password for your paypal and or epassporte account. their seems to be a problem with the account but if you give us the requested info we can fix it in no time.

                  Comment

                  • hotstuff
                    So Fucking Banned
                    • Aug 2004
                    • 234

                    #10
                    Originally posted by SinisterStudios
                    I agree, it amazes me that poeple dont disable root remote login, but then again there are alot of people running around saying they are linux experts that have no idea how to work with linux
                    with all due respect, disabling root login is just a hassle and makes no sense whatsoever. if you have a strong password, which you always should, any compromise which will result in that password being divulged will also give the attacker the username and vice versa.

                    restrict access to ssh to a well known, fully secured (no extra applications running, no remote access) box. run ssh on a non-standard port. run a non-standard sshd. disable the banner. these are all things which are relatively easy to do. for those of us with more skills and more advanced needs, custom kernel modules, custom ssh/sshd and otp.

                    disabling root login doesnt even figure on the radar.

                    Comment

                    • Robx
                      Confirmed User
                      • Nov 2004
                      • 357

                      #11
                      with all due respect, disabling root login is just a hassle and makes no sense whatsoever.
                      I think that it's just as easy to su from a regular account.

                      Also, it saves you from logging in as root to do simple tasks that don't require root access.

                      Contact Us About Getting Your Paysites Exposed To Millions Of People On The Peer To Peer Networks!
                      ICQ 124-249-781

                      Comment

                      • SinisterStudios
                        Confirmed User
                        • Nov 2003
                        • 3087

                        #12
                        Originally posted by hotstuff
                        with all due respect, disabling root login is just a hassle and makes no sense whatsoever. if you have a strong password, which you always should, any compromise which will result in that password being divulged will also give the attacker the username and vice versa.

                        restrict access to ssh to a well known, fully secured (no extra applications running, no remote access) box. run ssh on a non-standard port. run a non-standard sshd. disable the banner. these are all things which are relatively easy to do. for those of us with more skills and more advanced needs, custom kernel modules, custom ssh/sshd and otp.

                        disabling root login doesnt even figure on the radar.
                        I dont agree at all, almost all documents or papers written on hardening a linux/unix box say to disable root remote login. I worked for ibm for 8 years in hosting and the first thing we did on all boxes was disable root remote login. A good password is always the key, but you should always login as a user and then SU to root if needed. Everyone has their way of hardening a box and this is the way i personally (and alot of security people) think is a step that needs to be done to a linux box to harden it. It doesnt take the place of proper password usage, but its a step that should be done.

                        Thats my and im sticking to it.
                        SEOIP.com
                        Multiple IP Webhosting
                        Shared and Dedicated IP's - Multiple Class A's - From $1.99/ip

                        Comment

                        Working...