![]() |
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.
:helpme |
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 |
Quote:
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. :helpme |
Quote:
|
Here's the solution: http://www.rsasecurity.com/
|
Found this nice script for the purpose, i thought i would share :thumbsup
#/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" |
Quote:
|
Firewall it, lock it down, encrypt it and always pay attention to it.
:-) |
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.
|
Quote:
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. |
Quote:
Also, it saves you from logging in as root to do simple tasks that don't require root access. |
Quote:
Thats my :2 cents: and im sticking to it. |
All times are GMT -7. The time now is 03:02 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123