How do you get around SFTP not having the 'cat' command to set up scripts to run cron jobs for passwords?
I am use to the FTP allowing that, but we are converting to SFTP and need to be able to still run the same scripts in off hrs. Is there a way to still cat the password at the prompt in the sftp> username
Password:
without doing it manually??
No, I has it save in a file and had been using 'cat' to put on the password prompt line.
As : cat /home/sysadmin/.pp where .pp is a hidden file only the owner can see.
Since 'cat' is not part of SFTP I am looking for another way to do this in sftp.
I do not have a option on this as this is a Dept. Of Labor server I maintain. They put the operating system and programs on it for me to use. Unfortunately I have no other option then SFTP as they are killing FTP.
I have never used keys to get into the box that way before. Most of everything we have on our server as far as keys is encrypted and I have no access to that. In other words, I can not become root on this server!
apra143,
It allowed me to login but gave a message of :
no xauth data; using fake authentician data for x11 forwarding.
Could not chdir to home directory : No such file or directory
FSUM7358 no HOME directory
This is a test server they are setting up, so its possible everything is not all set yet. I will check with the IT team. This at least gives another direction to explore.
incredible,
Tried using the script you showed me only using sftp instead of ftp, as ftp will be completely going away on the server shortly. It prompts for password and then continues to hang like before. So either the receiving is not set properly of I still have something missing. This is a direct connect behind a secure firewall. I will not be leaving and going to an outside lan, but rather stay within our own secure lan. It can not be seen from out side our site.