Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5313
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How to etablish an SSH2 tunnel with php ? |
| Date | 2012-04-02 09:04 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <jlc843$vhb$1@dont-email.me> (permalink) |
| References | (2 earlier) <4f77e198$0$19075$426a74cc@news.free.fr> <jl9n1j$eg8$1@dont-email.me> <4f786966$0$16470$426a74cc@news.free.fr> <jlaur9$hkp$1@dont-email.me> <4f79468b$0$715$426a74cc@news.free.fr> |
On 4/2/2012 2:26 AM, Une Bévue wrote: > Le 02/04/2012 03:19, Jerry Stuckle a écrit : > >> >> Does your www-data user have access to the key files? They need to be >> readable by www-data (but you shouldn't have to create a new key for the >> web user). >> > > not for the time being : > .-(~)-------------------------------------(yt@D620)- > `--> lal .ssh > total 28 > drwxr-xr-x 2 yt yt 4096 2012-01-03 17:06 . > drwxr-xr-x 91 yt yt 4096 2012-04-02 08:11 .. > -rw------- 1 yt yt 998 2012-02-04 09:32 authorized_keys > -rw------- 1 yt yt 137 2012-02-07 13:09 config > -rw------- 1 yt yt 751 2011-12-20 09:50 id_dsa > -rw-r--r-- 1 yt yt 597 2011-12-20 09:50 id_dsa.pub > -rw-r--r-- 1 yt yt 1548 2012-01-25 08:17 known_hosts > .-(~)--------------------------------------(yt@D620)- > `--> > > afaik, i can't let them readable by all user because otherwise ssh won't > work (?). > > I'll try to change that one for id_dsa from -rw------ to -rw-r---- or > even -rw-r--r-- > > with the latest, i got : > Warning: ssh2_auth_password(): Authentication failed for yt using > password in /home/yt/Sites/landp_public/ssh2.php on line 49 > > then, with passphrase : > Warning: ssh2_auth_pubkey_file(): Authentication failed for yt using > public key in /home/yt/Sites/landp_public/ssh2.php on line 46 > > > same errors when all the files in my .ssh folder are readable for all > people. > > even with those pems change on .ssh, I'm still able to connect directly > by : > $ ssh yt@iMac > > thanks for your answer. They have to be readable by the www-data user to be able to be used in authentication. You don't, however, have to make them readable by all; they can be owned by www-data, for instance. Or you should be able to make copies of them (I don't like to do this) and have those copies available to www-data (warning - do NOT place them in your web directory!). -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-03-31 18:40 +0200
Re: How to etablish an SSH2 tunnel with php ? "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2012-03-31 12:35 -0500
Re: How to etablish an SSH2 tunnel with php ? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-01 00:56 +0200
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-01 06:51 +0200
Re: How to etablish an SSH2 tunnel with php ? Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-31 15:18 -0400
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-01 07:03 +0200
Re: How to etablish an SSH2 tunnel with php ? Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-01 10:00 -0400
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-01 16:42 +0200
Re: How to etablish an SSH2 tunnel with php ? Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-01 21:19 -0400
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-02 08:26 +0200
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-02 12:01 +0200
Re: How to etablish an SSH2 tunnel with php ? "Peter H. Coffin" <hellsop@ninehells.com> - 2012-04-02 07:15 -0500
Re: How to etablish an SSH2 tunnel with php ? Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-02 09:04 -0400
Re: How to etablish an SSH2 tunnel with php ? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-02 12:31 +0200
Re: How to etablish an SSH2 tunnel with php ? "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-02 12:54 +0200
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-02 13:14 +0200
Re: How to etablish an SSH2 tunnel with php ? "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2012-04-02 12:12 -0500
Re: How to etablish an SSH2 tunnel with php ? Une Bévue <unbewusstsein@fai.invalid> - 2012-04-02 13:12 +0200
Re: How to etablish an SSH2 tunnel with php ? Jason Playne <jason@jasonplayne.com> - 2012-04-04 01:36 -0700
Re: How to etablish an SSH2 tunnel with php ? unbewusst.sein@fai.invalid (Une Bévue) - 2012-04-05 07:36 +0200
Re: How to etablish an SSH2 tunnel with php ? Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-05 08:10 -0400
csiph-web