prompting for passwords even i configured ssh password less authentication

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat prompting for passwords even i configured ssh password less authentication
# 8  
Old 10-09-2012
What are the permissions of your home dir itself? 777 will stop it from working for security reasons...
# 9  
Old 10-09-2012
on testing server my home permissions are as follows :

Code:
pwd
/home/oracle/.ssh
[oracle@testing .ssh]$ ls -ltr /home/
drwxrwxrwx 46 oracle oinstall  12288 Oct  8 16:11 oracle


Last edited by Scott; 10-09-2012 at 08:33 AM.. Reason: Code tags
# 10  
Old 10-09-2012
Yes, 777 will stop it from working.

It shouldn't be 777 anyway. Try 750
# 11  
Old 10-09-2012
I changed permissions to

chmod 750 /home

now i can connect testing server from site server without password. ( thanks a lot for ur kind support ).


one thing i want to ask that changing /home/oracle permissions to 750 will result in something abnormal functionality in running oracle e-buiness suite application ??

---------- Post updated at 12:58 PM ---------- Previous update was at 12:35 PM ----------

i have to do the work i done above on my production server.

i am getting following error :

chmod 750 /home/
chmod: changing permissions of `/home/': Operation not permitted
# 12  
Old 10-09-2012
to your first question: No.

/home is (should be) owned by root, not oracle.
# 13  
Old 10-09-2012
there was a directory shared via samba (/home/oracle/pfl_opm)

now this directory is not accesses via samba after changing above permission from 777 to 750.

What i do now ?

---------- Post updated at 03:53 PM ---------- Previous update was at 03:43 PM ----------

these are contents from samba :

Code:
[opm]
        path = /home/oracle/pfl_opm
        writeable = yes
;       browseable = yes
        valid users = opm

this directory is not going to access from samba after making above changes.

Last edited by Scott; 10-09-2012 at 07:57 AM.. Reason: Please use code tags...
# 14  
Old 10-09-2012
Change /home/oracle to 755

Changing /home to 750 is not a good idea. 755 for that is normal.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run commands on remote server using ssh password less authentication?

Hi, I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this. I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Discussion started by: ssk250
6 Replies

2. Shell Programming and Scripting

SFTP prompting for password even though password is in script

Hi All, I am trying to transfer a file from one server to a remote server using SFTP. Client is not ready for key setup. I am working on Solaris 10. Here is the code. #!/bin/ksh # sample automatic Sftp script to dump a file USER="user1" PASSWORD="pass1" HOST="host1" sftp $USER@$HOST... (6 Replies)
Discussion started by: megha2525
6 Replies

3. Shell Programming and Scripting

Ssh is prompting for password

Hi, When i am trying to connect to other server using ssh coomand, it is prompting for password. But i want to hardcode it with username so that it should not prompt for password. And i dont want to use "ssh-keygen" method as it is not allowed. Please help me. Regards, Mukta (7 Replies)
Discussion started by: Mukta
7 Replies

4. Shell Programming and Scripting

Prompting for password

Hi, I have SVN installed in my UNIX solaris server. I actually automated the process that downloads code from SVN server to UNIX solaris server in script. When i run the script, its asking for password to download every element. Its really difficult to type password for every element when... (3 Replies)
Discussion started by: gthangav
3 Replies

5. UNIX for Dummies Questions & Answers

[SSH-RSA] Still prompting for password after generating keys

Hello, I'm trying to perform these operations without entering any password, as user "fzd":fzd@machine1> scp /tmp/srcFile1 fzd@machine2:/tmp/$destFile fzd@machine1> scp fzd@machine2:/tmp/$srcFile /tmp/$destFilebut alsofzd@machine1> scp /tmp/srcFile1 machine2:/tmp/$destFile fzd@machine1> scp... (6 Replies)
Discussion started by: fzd
6 Replies

6. UNIX for Dummies Questions & Answers

SSH Keys Authentication keeps asking for password

Hi! Im trying to set access from ServerA(SunOS) to ServerB(Some custom Linux with Keyboard Interactive login) with SSH Keys. As a proof of concept I was able to do it between 2 virtual machines. Now in my real life scenario it isnt working. I created the keys in ServerA, copied them to... (7 Replies)
Discussion started by: RedSpyder
7 Replies

7. Programming

ssh via java prompting for password

Hi, I have set up my remote server for password-less login via ssh. If I run the command on my server - ssh user@remoteserver "ls -l" I get an output, but when I try to do this via java String sCmd = new String{"/usr/bin/ssh", " user@remoteserver", "\"ls -l\""}; Process p =... (3 Replies)
Discussion started by: nrworld
3 Replies

8. Red Hat

Partition encryption without prompting passwords.

Hi Gurus, I have been working on encrypting a partition in a Fedora box and have successfully encrypted a partition(By name /test) using "cryptsetup & luks". The below command was put up in a runcontrol file which is called during bootup to automount them during bootup. cat... (0 Replies)
Discussion started by: Hari_Ganesh
0 Replies

9. HP-UX

sftp/scp/ssh script with password as authentication

Hello, Do you guys know set of commands that can incorporate to sftp/scp/ssh to add password in a script to automate file transfer. Our client is not using ssh keys authentication so we are force to create a script to pass the password into the script to transfer files via sftp/scp/ssh. We... (4 Replies)
Discussion started by: james_falco
4 Replies

10. UNIX for Advanced & Expert Users

SSH - Prompting for password

Hi, Can anybody tell me a way to do ssh , without prompting for password from keyboard, Using RSA. The requirement is I need to create the key , using passphrase also..... Is there any way to do it in UNIX ? I am doing it from AIX machine , but remote machine is Linux I tried... (8 Replies)
Discussion started by: shihabvk
8 Replies
Login or Register to Ask a Question