Friday, January 25, 2008

SFTP error

Problem error:
Trying to use sftp to remote host with port 115 open for secure FTP...

ppan08:xxxusr 1> sftp xxxftp@x.xx.xxx.xxx
Connecting to x.xx.xxx.xxx...
PRNG is not seeded
Connection closed

Solution:

1. Executed via root id and it was successful.
sftp xxxftp@x.xx.xxx.xxx
Connecting to x.xx.xxx.xxx...
The authenticity of host 'x.xx.xxx.xxx (x.xx.xxx.xxx)' can't be established.
RSA key fingerprint is 93:96:47:a0:92:dd:db:e7:3c:64:b1:49:44:53:a5:32.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'x.xx.xxx.xxx' (RSA) to the list of known hosts.
xxxftp@x.xx.xxx.xxx's password:
sftp> put /tmp/test.txt
Uploading /tmp/test.txt to /FTPDIR/test.txt
/tmp/test.txt 100% 5 0.0KB/s

2. Looking further into previous error encountered: "PRNG is not seeded"

/dev files (random and urandom) permission changed to r for the "seeding" to be executed. It was detected that files only have crw access for the file owner and no permission to anyone else (crw------- ). Hence, this is the reason why it worked with root id.

Upon changes to the permission of the files (crw-r--r--), sftp worked with any id with the same results above.

No comments: