[QCLUG] Open SSH help
Mark Overholser Jr
omnipotent13@gmail.com
Wed, 25 Jul 2007 17:59:20 -0500
---------------------- multipart/alternative attachment
Yeah, the important thing to note is that you don't start an SSH session
first, you just issue the scp command from one of the machines, in this case
you would execute the command from the machine that has the file(s) you want
copied. When you run the scp command, if you specify that the place to which
to copy the files is a remote location (by using a username, ip, and a colon
[like root@192.168.1.101:]) then it will establish the ssh connection and
ask you for the password.
On 7/25/07, Mark Riedesel <mriedesel@gmail.com> wrote:
>
> scp functions exactly the same as cp, except you can append
> RemoteUser@RemoteServerNameOrIP: to the source or destination file path.
>
> Based on your kinda random issuing of commands, I'm guessing the solution
> would be..
>
> (running this from jack@jacklaptop)
> scp /home/jack/web/MainMap2.html jack@server:/var/www/
>
> /home/jack/web/MainMap2.html would be the source, and jack@server:/var/www/
> would be the destination.
>
> Assuming 'server' resolves to your server's IP address, if it doesn't,
> then substitute "server" for the IP address of the server which I gather is
> 192.168.3.200
>
>
>
> On 7/22/07, Jack <jack@haleprint.com> wrote:
> >
> > Thanks Chris for the help: Closer but not there yet. Now this is what I
> > get.
> >
> > user@server :~$ cd /home/jack/web
> > -bash: cd: /home/jack/web: No such file or directory
> > user@server:~$ scp MainMap2.html user@server.192.168.3.200:/var/www/
> > The authenticity of host 'server.192.168.3.200 ( 71.33.86.118)' can't be
> > established.
> > RSA key fingerprint is a6:be:c8:76:e1:0a:1f:5d:78:e8:ae:71:43:68:ef:24.
> > Are you sure you want to continue connecting (yes/no)? yes
> > Warning: Permanently added ' server.192.168.3.200' (RSA) to the list of
> > known hosts.
> > Warning: the RSA host key for 'server.192.168.3.200' differs from the
> > key for the IP address 'Server IP'
> > Offending key for IP in /home/jack/.ssh/known_hosts:4
> > Are you sure you want to continue connecting (yes/no)? yes
> > user@server.192.168.3.200's password:
> > scp: /var/www/: Is a directory
> >
> > Thanks again
> > Jack
> >
> >
> >
> > ===============================================================================
> > Chris Jones wrote:
> > > cd /home/jack/web
> > > scp MainMap2.html
> > > userOnOtherServer@otherserver.ip.address.or.name:/var/www/
> >
> > _______________________________________________
> > QCLUG mailing list
> > QCLUG@qclug.org
> > http://qclug.org/mailman/listinfo/qclug
> >
>
>
---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: http://qclug.org/pipermail/qclug/attachments/d9dd7f98/attachment.htm
---------------------- multipart/alternative attachment--