General :: Ssh Without A Password (setting Up Ssh Keys Doesn't Work)?
Mar 9, 2011
I want to ssh, scp, git fetch, etc. without a password. I saw the previous questions, and closed ones regarding this issue, but the suggestion seems to be to use ssh keys. However, after setting up ssh keys, I am still asked for my password (it's not asking for my private key password; it's asking for my login password). How am I supposed to set this up so that it only uses my private key for authentication?
I have some Flex and Java files which can be compiled with JDK1.5. My server was already loaded with 1.4 (at path /usr/bin/java) and our sys admin(I dont know why) copied another JDK, JDK 1.5 at path /usr/java/jdk1.5.0_16/. It seems very easy to use this java. Just set the path in .bash_profile. I did it and now if I run which java I still see the path for java 1.4 not java 1.5. Am I doing something wrong? Following is actual entry from bash_profile
i use a HP Pavilion dv6-3016ax everything works perfectly and i am very happy with ubuntu! If i could get the Brightness keys to work and the microphone i'd be even better. The brightness FN keys change the slider but make no physical difference of the brightness. And the microphone just doesn't work.
I recently install a Debian 8.0 Jessie on a Laptop Dell latitude E6540 with gnome 3.14+3. But the problem is that it doesn't recongnize my multimedia buttons, I tried some methods but I didn't get results.
I use Ubuntu 10.04 32 bits and I have one keyboard Logitech Comfort Wave 450 with some multimedia keys (PLAY/PAUSE, VOLUME UP/DOWN, MUTE,.This multimedia keys works well in Rhythmbox but in Qmmp and Audacious2 doesn't. I explain this: Start my Gnome session. I open Qmmp/Audacious with one playlist charged, I press PLAY/PAUSE in my keyboard, but Qmmp/Audacious doesn't play. Close Qmmp/Audacious. I open again Qmmp/Audacious and now, when I press PLAY/PAUSE, it works! It also works if I open Rhythmbox before to open Qmmp/Audacious.
I'm trying out various windows mgrs and I'd love to be able to preserve certain key mappings... ...but what's REALLY important are the MOUSE KEYS!!!!!!! I use the mouse left-handed. I can set that in Gnome or KDE easily, but if I go into, say Ratpoison, it's un-set again. Is there a system-wide (or as close to it as possible) mouse setting?
I cannot log on. I don't know if this is related, I was setting up for remote desktop, setup a password for the remote session. After rebooting, my normal user and password do not work and my rdp password does not work.
I got a problem about network proxy setting. With the graphics setting interface, I set auto proxy with the URL address but it is weird that the setting only work with eth1(wireless), doesn't work with etho(wired). however my wireless driver is always a problem for Linux. i also tried export http_proxy= XXXXX:8080 it still doesn't work at all.
I just installed Fedora Core 13 on my notebook and on installation setup entered password for root as asked. Now I'd like to login as root in console with password I gave to the root, but it doesn't work. Neither am I as regular user in sudoers file.
I know this has probably been asked too many times here but I need to secure my emails. Personal matters of course. But yeah. I use the program "Password and Encryption Keys" to generate a key to sign my emails with but I do not know what to do. To be blunt, I'm stupid when it comes to this. IF not, steps in creating a key? and giving it (my public key) to the significant other? Finding where both keys are? Implementing it into Thunderbird? If it helps any here's some extra information: Ubuntu distro: Ubuntu 10.04 Email client: Thunderbird
I tried installing lubuntu 'over' ubuntu, but am now locked out. Basically, the login screen loads, I've tried entering my username and password, but it doesn't work. I'm not really sure of my username as Ubuntu would automatically fill it in for me. But lubuntu isn't auto-loading my username, so I've been trying to enter all types of variations. I am 100% of my password though
I tried getting help at lubuntu's chat, but that's been kind of hard since there aren't that many people responding. The lubuntu people had me go into recovery mode (2.6.38-8 recovery) and so that would go smoothly. But when the screen of the options of resume, clean, dpkg, failsafex, etc, I cannot move the selector down. So basically, the orange selector is stuck at resume. Whenever I press the down key, the computer runs some lines, and I cannot go back to the list of options. The list is still visible, but can't select any of the options.
If I press the 'end' button, that executes something (probably the last option in the list), and I shut down the pc when it did that. The other arrow keys do nothing. The tab button manages to move the selector from the list to 'Ok' and 'Cancel.' But I cannot move the selector down.. TL;DR: I need to either get into recovery mode, or find a way to get my exact username lubuntu thinks it is.
My problem is that I cant "rewrite" older password to new. It looks like I do:
Changing password for user johny. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.
all looks OK but after set up new password I can log in using OLD and NEW password. It's very unsecure for me. So in fact I cant change password and it looks like centos create next password to one accout and one account have more then one password... how can I prevent it? pls help me couse its very unsecure in my case.user looks in file shadow /etc/shadow like this:
I'm running Debian (both Sarge and Lenny, on different systems) under Gnome and have a number of thin client workstations that connect to a software application on an AIX server. I'm using gnome-terminal to provide terminal emulation for this software. Unfortunately, the emulation leaves something to be desired, and doesn't catch all of the F keys properly. It seems F1-F4 act as some form of escape key, exiting out of the software back to the command line, when they should be performing different functions in the software. F5 and F6 work as they should in the emulation. Is there a setting I can apply to my gnome-terminal launcher that will make this behave like it I want? The terminal should ideally match the behavior of a Link MC5 terminal (we have some of these old beasts still around, still crunching away), but alas, I don't know how to implement this.
I recently was able to network 2 computers at home and I wanted to make my password more secure. When I try to edit my password via System>Administration>Users and Groups, it doesn't workI am able to edit my user settings. When I change my password I enter my old one and it accepts my new one. Problem is when I try to install programs, login and do other things it only accepts my old password. How can I change my password?
I've setup the .ssh/authorized_keys and am able to login with the new "user" using the pub/private key ... I have also added "user" to the sudoers list ... the problem I have now is when I try to execute a sudo command, something simple like:
$ sudo cd /root
it will prompt me for my password, which I enter, but it doesn't work (I am using the private key password I set)Also, ive disabled the users password using
$ passwd -l user
I am trying to harden my system ... the ultimate goal is to use pub/private keys to do logins versus simple password authentication. I've figured out how to set all that up via the authorized_keys file.Additionally I will ultimately prevent server logins through the root account. But before I do that I need sudo to work for a second user (the user which I will be login into the system with all the time).
For this second user I want to prevent regular password logins and force only pub/private key logins, if I don't lock the user via" passwd -l user ... then if i dont use a key, i can still get into the server with a regular password.But more importantly I need to get sudo to work with a pub/private key setup with a user whos had his/her password disabled.
1) I've adjusted /etc/ssh/sshd_config and set PasswordAuthentication no This will prevent ssh password logins (be sure to have a working public/private key setup prior to doing this
2) I've adjusted the sudoers list visudo and added
root ALL=(ALL) ALL dimas ALL=(ALL) NOPASSWD: ALL
3) root is the only user account that will have a password, I am testing with two user accounts "dimas" and "sherry" which do not have a password set (passwords are blank, passwd -d user)
The above essentially prevents everyone from logging into the system with passwords (a public/private key must be setup). Additionally users in the sudoers list have admin abilities. They can also su to different accounts. So basically "dimas" can sudo su sherry, however "dimas can NOT do su sherry. Similarly any user NOT in the sudoers list can NOT do su user or sudo su user.
this may not be the right place to ask this, but my sister has a macbook and the keyboard does not want to work. i have looked online and i see that the main cause of this problem is in Leopard (correct me if im wrong). So i was wondering if perhaps using linux would solve this problem or if the problem is more hardware related than os related.
Also, how would i go about booting into a linux cd? since u need to enter some keyboard keys at startup and assuming that won't work, is there another way?
In Ubuntu 9.10 is there a way of setting the password to only three characters.If one goes to system, Preferences, About Me, the password can be reset, but it only lets you set it to eight characters, I would prefer three or less.
I cant understand how to sort out from this problem, while check the cobbler boot server, from the command cobbler check follwing error comes out , i dont understand how to fix it
1 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one Restart cobblerd and then run 'cobbler sync' to apply changes.
I don't know if this is a configuration issue or a hardware issue, but I have a Kinesis Advantage USB keyboard and for some reason the F3-F5 keys aren't responding as they used to. They don't respond to anything and, when I tried using F5 on Emacs, it said <XF86AudioNext> is undefined, so I guess it's a weird mapping problem.
Any idea how I could remap them to the original meaning?
I had my procedure down for setting up the keys on my various machines on my LAN when I was running Fedora9 - I just followed my own notes to set up 'ssh' on one of my machines that I am upgrading to Fedora13 and am finding discrepancies. I used to be able to set files up such that if I am on one machine, I could just ssh to another and I wouldn't be prompted for passwords or passphrases etc. Whatever I did before doesn't work any more (I keep being prompted for passwords/passphrases) - does anyone have a hint to point me in the right direction on how to set up the keys etc. - or what changed from F9 to F13? Also is the handling of ssh keys the same from F9 to F13? Reading the documentation it seems that on my old machines the man page says this:
<snip> that passphrase will be used to encrypt the private part of this file using 3DES.
<snip> that passphrase will be used to encrypt the