Re: [SLUG] Re: SFTP Help

From: Keith Lelacheur (themercuryman@gmail.com)
Date: Tue Oct 11 2005 - 22:20:18 EDT


On 10/11/05, Ian C. Blenke <icblenke@nks.net> wrote:
>
> Keith Lelacheur wrote:
>
> > Alright I am trying to use scp, but I am new to the whole
> > public/private key thing. SCP wants to work but it is failing
> > authentication at the key level and resorting back to password
> > authentication. I am sure I am missing something basic, but I not
> > sure what it is at this point. Here is the verbose output (sanitized
> > of course). Any help is appreciated.
>
>
> On LNXPROCSRVR, do:
>
> [root@LNXPROCSVR Backup051011]# ssh-keygen -b 1024 -t dsa -P''
> [root@LNXPROCSVR Backup051011]# scp ~/.ssh/id_dsa.pub
> root@69.?.?.?:.ssh/authorized_keys
>
> Now you have root key trust, without a passphrase, which you can use to
> automate that SCP without entering a password.
>
> With google and a bit of searching, there are a number of good guides as
> to how this works.
>
> - Ian C. Blenke <icblenke@nks.net> <ian@blenke.com> http://ian.blenke.com
>
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.

Thanks for the help folks. I have learned a lot through this, but I think I
am going to have to go another route to accomplish the end goal. It seems
that the server that I am attempting to send these files to will not accept
the keys that I generated. I do not have access to my home directory on the
server like I would if I had an actual shell account. I cannot actually SSH
into the server. I have tried Putty from windows and ssh from my Mandriva
box, and I can not actually get to a shell prompt. When I connect using the
Secure FTP client (with the manual entry of the password) I only have access
to the one upload directory. I have tried to cd to what should be my home
directory and it will not let me go there. I tried dumping the keys in the
upload directory and then connecting using the keys for authentication, but
to no avail. After googeling for a while I found out that "expect" can be
used in situations like this. I have no Tcl experience at this point, but it
seems like a good opportunity to learn something new. Anyone have any tips
or experience doing something like this?

Keith

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:11:16 EDT