Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH Advice Please...

Status
Not open for further replies.

DocMorgan

Technical User
Oct 31, 2002
3
US
Looking for a good SSH Server. I have to come up with a solution for a FTP/SSH server for my company for our clients to be able to pull/push data at will. Key thing is that it needs to be automated so that when scheduled... it will automatically push files in a directory to a site based on a script at 15 minute intervals. Anyone know of any easily configurable software from a recognized financially stable vendor that I should consider?

Thanks -
Doc
 
I'd just use OpenSSH. You can generate certificates and only allow RSA Cert logins, so there is never a password sent over the line. You create the certs and send them to your clients. They install them on their ssh client and the login is automated. Transfers can be set up via cron job or script.

If you have something against Open Software, then try F-Secure.

pansophic
 
Just another one for OpenSSH...this would be your best solution

Cheers
 
Pansophic, Froggyj

I am hoping you may be able to help. I have downloaded and installed OpenSSH on both a client (my laptop) and server. I have literally run the install and left all the config as standard. I have then tried to create password files with the mkpasswd command, this took about 2 hours in itself (and its all meant to be so easy :( I have had some help from a friend but am hoping you may also be able to help.

On both the server and client I have run the openssh. I have then run the following command from the client

c:\ssh username@192.x.x.x

the banner.txt (I now know why its there now :) pops up and it requests a password. I haven't and am unable to create a password. Each and every time I rerun the mkpasswd command it simply adds another line to the password file, I know this because you can view the password file through Notepad etc.

I am really stuck, I think I may be meant to create a key pair or something. God knows!! Even the readme.txt (detailed instructions) don't help. I am not a Linux boy and the instructions were obviously written by someone from a Linux background.

Basically any guidance you can give me would be appreciated

Cheers
 
What platform are you running on? By default, mine have always just used the system username and password as the login authentication. I've had to reconfigure the servers to use cert authentication, which is what you will want for unattended scripting.

By default, root is blocked from logging in remotely (I recall). I used to have to put this line in manually, not it is commented automatically. You just uncomment to allow root login.

#PermitRootLogin yes

It is dangerous, so I don't recommend it.

Also, you only HAVE to run sshd on one of the machines. The other will be a client and you will run ssh on it.


pansophic
 
You will need to generate the keys on your client and appended them to a file(authorized_keys2) on the server like this:

type ssh-keygen -t dsa

just hit enter 3 times, it will put the files in /home/.ssh

You will get 2 keys a private one (id_dsa) and a public one (id_dsa.pub). You can take the public one and cat that into ~/.ssh/authorized_keys2 on the remote server like this:

cat id_dsa.pub >>.ssh/authorized_keys2

Norm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top