From owner-freebsd-questions@FreeBSD.ORG Sat Dec 4 02:16:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B79611065672 for ; Sat, 4 Dec 2010 02:16:55 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4764C8FC0A for ; Sat, 4 Dec 2010 02:16:54 +0000 (UTC) Received: by fxm16 with SMTP id 16so7951351fxm.13 for ; Fri, 03 Dec 2010 18:16:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=hQE9Xac6ZCFfy9H7O37IXvnjvCcuPGrTAHDuKl6bsTA=; b=oTfoqr00H5HzhrMhiJS+WYh2ayzQrEcb3LeAqyjTZ8otr0yCc3eBLFnj1+mluMUTrh BolyZ+U1jWjGu1v7VHKdiPpW+rsFvEXy02bZBF2IoHiiAkd7NT1BVR75hv0sLJXikRQQ U7wEvjB3cxCol7cC7PoHmn+RacUE+BrYeFXbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fpzarPNOL9lzVXE58fhO2OdY1EDj+yfV9+y4Lj7/ZxAHfFRO4uMCcIOkNfxAYbgqhf m6Q40qFANgp0M+ilZo9skdI/dRC2VZntY+UkmZPLBChUKvV0I7PkoRgzasOk3oU41azG IZaQErwEHn9D2hBViO4eEWE3KXzGdMkRcTi5Y= MIME-Version: 1.0 Received: by 10.223.97.13 with SMTP id j13mr631684fan.146.1291429012263; Fri, 03 Dec 2010 18:16:52 -0800 (PST) Received: by 10.223.107.79 with HTTP; Fri, 3 Dec 2010 18:16:52 -0800 (PST) In-Reply-To: <894762.38692.qm@web114415.mail.gq1.yahoo.com> References: <894762.38692.qm@web114415.mail.gq1.yahoo.com> Date: Fri, 3 Dec 2010 20:16:52 -0600 Message-ID: From: Adam Vande More To: Josh Suid Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: ssh interactive session, through intermediate hosts ... problems ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 02:16:55 -0000 On Fri, Dec 3, 2010 at 6:43 PM, Josh Suid wrote: > # ssh user@host ssh user@host2 > Pseudo-terminal will not be allocated because stdin is not a terminal. > Permission denied (publickey,keyboard-interactive). > > Is there a way to build this tunnel with a single command ? (an ssh > command, > run over an ssh command, run over an ssh command) > > Finally, is there a way to scp a file over intermediate hosts ? That is to > say, I want to scp the file: user@host:/some/file to myself, but I want > the ssh session to go through hosts X and Y first ... there must be a way > to do this where you pipe the output of scp over ssh to ... head > spinning... > Generally speaking, you'll do something like this: http://www.rzg.mpg.de/networkservices/ssh-tunnelling-port-forwarding then you can do fancier stuff to speed up working like passwordless login's, terminal multiplexer's like tmux etc. You may also wish to consider setting up a VPN. -- Adam Vande More