![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
The user is apache and finger apache returns
Login: apache Name: Apache Directory: /var/www Shell: /sbin/nologin Never logged in. No mail. No Plan. I did: cd /var/www cp -R ~/.ssh ./ chown -R apache .ssh chgrp -R apache .ssh but apache is still unable to find those keys when calling the php script. I am using an apache virtual host and I copied that same .ssh folder to the DocumentRoot without better results. Any idea? Thank you |
|
|||
|
On the target server you need to create also a ./var/www/.ssh/ directory that should contain the authorized_keys file in which you should add the user "apache" public key.
Instead of copying the root keys or any other key, I would rather create a new set of key with ssh-keygen command under apache user. Transfer the public key to the target server and add that key to the /var/www/.ssh/authorized_keys file. |
|
|||
|
Login as root and:
# su apache $ ssh-keygen -t rsa Leave the pass phrase empty. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing variable from bash to perl from bash script | arsidh | Shell Programming and Scripting | 10 | 06-04-2008 01:25 PM |
| Bash rsync but move not delete | Movomito | Shell Programming and Scripting | 1 | 04-30-2008 05:37 PM |
| rsync over ftp | Hitori | UNIX for Advanced & Expert Users | 2 | 03-14-2008 01:42 PM |
| rsync in ftp | Euler04 | Shell Programming and Scripting | 5 | 10-24-2005 08:17 AM |
| Rsync | darknite87 | UNIX for Advanced & Expert Users | 1 | 06-06-2002 04:37 PM |