X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Antoniette Subject: Re: ssh tunneling and keys - how to... Date: Tue, 4 Sep 2012 13:48:12 +0000 (UTC) Lines: 64 Message-ID: References: <1346762020 DOT 5257 DOT YahooMailNeo AT web87706 DOT mail DOT ir2 DOT yahoo DOT com> <20120904130349 DOT M50796 AT ds DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Brian Wilson ds.net> writes: > > You have your local computer connected to a second computer and want to go fro > the second machine to a third machine (if I understand this). The connection > from the local machine to the second machine works; but the connection from > the second to the third does not work. > > You need to set up an ssh key from the second server to the third server. > Generate the public/private key on the second server and move the public key > to the third server's .ssh directory (and check the directory and file > permissions are correct). You can't set up keys for all machines from the > local machine only. I hope this helps. > > Sincerely, > > Brian S. Wilson > > ---------- Original Message ----------- > > I need to ssh to a server and from there jump to another server. > > > > I created a public key and gave it to the administrator to install > > it on their side. > > > > I successfully connect to the first server but once in there, I > > cannot connect to the next server, I always get 'Permission denied'. > > > > My colleagues on Mac or Linux have not issues. Can I do this with > > CygWin or should I use something different? > > > > I've been told that I need to do something else on CygWin so this > > carry on the public key... Is this the case? > > > > Thanks. > ------- End of Original Message ------- > > Hi Brian and thanks for your answer. Yes, that's what I want to do, from my local machine connect to a remote server, once I open a session on that server, then connect to another server. The thing is that when I do this from a Linux machine, it works fine. I do not connect using my own user name but a special user name with read privileges that the administrators of those servers have created, imagine that the remote servers have created a user such as 'readonlyuser' with password 'simplepassword', that the first server is 'firstserver' and that the second server is 'secondserver', then I connect as... ssh readonlyuser AT firstserver (when asked for the password we input 'simplepassword' Now I'm connected to firstserver and from there I do... ssh readonlyuser AT secondserver (when asked for the password I input 'simplepassword' This last part is the one I cannot get working, I don't know if I am making sense here but it works from a Linux machine. Any ideas? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple