Re: ssh


Subject: Re: ssh
From: Craig Callender (craigc@corith.com)
Date: Thu Feb 21 2002 - 12:22:34 AKST


What host are you trying to connect to?

On 21 Feb 2002, Adam Elkins wrote:

Date: 21 Feb 2002 12:14:49 -0900
From: Adam Elkins <LinuxRobot@yahoo.com>
To: Mike Tibor <tibor@lib.uaa.alaska.edu>
Cc: aklug@aklug.org
Subject: Re: ssh

Ok, trying all the options you gave me, I get this error message:
Temporary failure in name resolution
lost connection.

What's going on here?

/dev/Adam/

On Thu, 2002-02-21 at 10:23, Mike Tibor wrote:
>
> On 20 Feb 2002, Adam Elkins wrote:
>
> > Once I log into the host, how do I copy files from the host to the
> > client? And vis-versa.
>
> I tend to use scp more than sftp, but in case some examples would help:
>
> scp file.tar.gz host2:
> (puts file.tar.gz into your homedir on host2)
>
> scp -r somedirectory host2:
> (copies somedirectory and its contents to your homedir on host2)
>
> scp host2:file.tar.gz ./
> (copies file.tar.gz from your homedir on host2 to the current directory)
>
> cat file2.tar.gz | ssh host2 "cat > file2.tar.gz"
> (another way of copying a file to your homedir on host2)
>
> ssh host2 "tar cf - somedirectory" | tar xf -
> (anotherway of copying a directory from host2 to the workstation)
>
>
> I always like examples when I'm dealing with something new. :-)
> Mike

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

        In the beginning there was data. The data was without form and
null, and darkness was upon the face of the console; and the Spirit of
IBM was moving over the face of the market. And DEC said, "Let there
be registers"; and there were registers. And DEC saw that they
carried; and DEC separated the data from the instructions. DEC called
the data Stack, and the instructions they called Code. And there was
evening and there was morning, one interrupt.
                -- Rico Tudor, "The Story of Creation or, The Myth of Urk"



This archive was generated by hypermail 2a23 : Thu Feb 21 2002 - 12:22:47 AKST