|
|
sftp between unix and windows
I want to sftp between a Solaris 8 machine and a windows pc. I can do
this manually but I want to automate it into a cronjob so I need to be
able to script the passwords in, in normal ftp I can do this
ftp xxx <<EOF
user xx xxx
but I have to use sftp and this method doesnt work
I did try ssh-keygen and making a directory called .ssh on the pc and
putting the authorized_keys in there with the contents on id_dsa.pub
but when i do sftp user@host it still asks me for a password. (as does
ssh)
How can I either script the password in (im not toooo bothered about
security here as it is all local) or how do I get to use it with no
password
Thanks
Dave
|
|
0
|
|
|
|
Reply
|
davey22uk
|
2/11/2004 11:15:18 AM |
|
Dave wrote:
> I want to sftp between a Solaris 8 machine and a windows pc. I can do
> this manually but I want to automate it into a cronjob so I need to be
> able to script the passwords in, in normal ftp I can do this
>
> ftp xxx <<EOF
> user xx xxx
>
> but I have to use sftp and this method doesnt work
>
> I did try ssh-keygen and making a directory called .ssh on the pc and
> putting the authorized_keys in there with the contents on id_dsa.pub
>
> but when i do sftp user@host it still asks me for a password. (as does
> ssh)
> How can I either script the password in (im not toooo bothered about
> security here as it is all local) or how do I get to use it with no
> password
>
> Thanks
>
> Dave
Dave, If you are not bothered about security (even though we all should
be...), why do you need sftp?
If you can revert to normal ftp, then "man netrc" is your friend.
|
|
0
|
|
|
|
Reply
|
Beardy
|
2/11/2004 11:26:43 AM
|
|
Sounds like you want to do key-based authentication. Try something like this:
http://www-pnp.physics.ox.ac.uk/~west/intro_manual/node241.html
davey22uk@yahoo.co.uk (Dave) wrote in message news:<17aa6bcd.0402110315.4a3953d@posting.google.com>...
> I want to sftp between a Solaris 8 machine and a windows pc. I can do
> this manually but I want to automate it into a cronjob so I need to be
> able to script the passwords in, in normal ftp I can do this
>
> ftp xxx <<EOF
> user xx xxx
>
> but I have to use sftp and this method doesnt work
>
> I did try ssh-keygen and making a directory called .ssh on the pc and
> putting the authorized_keys in there with the contents on id_dsa.pub
>
> but when i do sftp user@host it still asks me for a password. (as does
> ssh)
> How can I either script the password in (im not toooo bothered about
> security here as it is all local) or how do I get to use it with no
> password
>
> Thanks
>
> Dave
|
|
0
|
|
|
|
Reply
|
dejanews
|
2/11/2004 3:49:51 PM
|
|
"Beardy" <beardy@beardy.net> wrote in message
news:bmoWb.2528$Y%6.381671@wards.force9.net...
> Dave wrote:
> > I want to sftp between a Solaris 8 machine and a windows pc. I can do
> > this manually but I want to automate it into a cronjob so I need to be
> > able to script the passwords in, in normal ftp I can do this
> >
> > ftp xxx <<EOF
> > user xx xxx
> >
> > but I have to use sftp and this method doesnt work
> >
> > I did try ssh-keygen and making a directory called .ssh on the pc and
> > putting the authorized_keys in there with the contents on id_dsa.pub
> >
> > but when i do sftp user@host it still asks me for a password. (as does
> > ssh)
> > How can I either script the password in (im not toooo bothered about
> > security here as it is all local) or how do I get to use it with no
> > password
> >
> > Thanks
> >
> > Dave
>
> Dave, If you are not bothered about security (even though we all should
> be...), why do you need sftp?
>
> If you can revert to normal ftp, then "man netrc" is your friend.
>
Well im kinda bothered bothered about security but I dont mind putting
password in scripts or whatever.
It's going between a machine on a corporate lan to a machine in a dmz so
only port 22 for sftp has been opened.
Ill take a look at netrc (whatever that is :-) )
|
|
0
|
|
|
|
Reply
|
DJ
|
2/11/2004 8:52:19 PM
|
|
DJ wrote:
> Ill take a look at netrc (whatever that is :-) )
Use ssh and key's instead
|
|
0
|
|
|
|
Reply
|
Bruno
|
2/11/2004 10:19:15 PM
|
|
"Bruno Saverio Delbono" <bruno.s.delbono@mail.ac> wrote in message
news:DTxWb.464276$JQ1.99239@pd7tw1no...
> DJ wrote:
>
> > Ill take a look at netrc (whatever that is :-) )
>
> Use ssh and key's instead
>
i know im sounding stupid, but how?
|
|
0
|
|
|
|
Reply
|
DJ
|
2/11/2004 10:30:10 PM
|
|
DJ wrote:
> i know im sounding stupid, but how?
Keith Kris <dejanews@keithkris.com> already replied to your question:
Sounds like you want to do key-based authentication. Try something like
this:
http://www-pnp.physics.ox.ac.uk/~west/intro_manual/node241.html
Do not use ftp and netrc's if this machine is visible to the world.
SSH/sftp would work just fine
|
|
0
|
|
|
|
Reply
|
Bruno
|
2/11/2004 11:45:02 PM
|
|
|
6 Replies
1581 Views
(page loaded in 0.109 seconds)
|
|
|
|
|
|
|
|
|