sftp problem with ftponly shell


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sftp problem with ftponly shell
# 1  
Old 10-15-2010
sftp problem with ftponly shell

Solaris (10 if it matters)

We can connect from a remote client successfully to our server and use ftp without issue for an account with ftponly shell

With public/private keys, we can also connect passwordless to a server ftponly account and use sftp

However, if we try to connect to the using sftp on the client and enter the password (ie without public/private keys) , although it appears to connect nothing seems to work - the client side freezes and it's not possible to do anything useful. Doing the same thing but to a ksh account works fine, but leaves a huge security hole!

I've heard rumours that there's a known issue with sftp/ftponly but can't find any details. Can anyone help?

Jerry
# 2  
Old 10-15-2010
What are the (error) messages in syslog?
# 3  
Old 10-15-2010
can you check usePAM in sshd_config?. Also if you don't want it to prompt you a password change StricModes to "yes"
# 4  
Old 10-15-2010
Neo - nothing obvious on client or server in /var/adm/messages!

erick_tuk - I don't have privileges to see the config, so I'll try and get my SAs to take a look. What exactly are you expecting to see, and what do you think is needed?

Jerry
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SFTP problem

i have a problem no a dream :) i have a list and i want to do : cat lista_olo for file in `cat list` do sftp myuser@myip << EOF ls -l mydir/$file/ EOF but there is an error . Syntax error at line 11 : `<' is not matched How can i do ? Regards. (1 Reply)
Discussion started by: Francesco_IT
1 Replies

2. Shell Programming and Scripting

Problem with sftp

I have an sftp script which is uploading file into a directory which is not specified wth the cd command . For example: sftp sftpserver >>lcd /abc >>cd /tmp/bef >> put /abc/abc.txt /tmp/bef/abc.txt Uploading file from /abc/abc.txt to /xyz/wxy/tmp/bef/abc.txt >>quit The file is getting... (2 Replies)
Discussion started by: NP1
2 Replies

3. Shell Programming and Scripting

Problem using sftp

I want to execute shell script with in sftp session for remote server. like i have a shell script test.sh that is on local server.i want to execute like sftp user@192.168.56.10 sftp> test.sh ---execute for remote server not for local server. Please help me for this issue (2 Replies)
Discussion started by: SAUD PASHA
2 Replies

4. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

5. Shell Programming and Scripting

sftp problem

I have written a samll sftp script abc.sh as below sftp user@remote-server <<EOF lcd /home/gopi cd /home/raju get COA exit EOF Its working. But when i rin the script, it gives the acknowledgement like , sftp> lcd /home/gopi sftp> cd /home/raju sftp> get COA Fetching... (3 Replies)
Discussion started by: Gopal_Engg
3 Replies

6. Shell Programming and Scripting

Problem with SFTP...

Hi, Here is my problem::confused: Daily my ETL process will create 4 (Four) Flatfiles in unix box. Upon creation of the flatfiles, I need to do "SFTP" the files to a "Remote Server". Sometimes While doing SFTP, the files get trucated due to it's size. Now I would like to design a Korn... (3 Replies)
Discussion started by: npk2210
3 Replies

7. UNIX for Advanced & Expert Users

Problem using sftp

Hi my sftp batch run connect to the server and transfer the txt file to target server. but when I run again same batch with same file it give error. Any idea about this error..... regards Jamil edit by bakunin: please do not "hijack" threads. That is: if you have a genuine... (1 Reply)
Discussion started by: Jamil Qadir
1 Replies

8. Shell Programming and Scripting

problem with SFTP

Hi, I am doing a FTP from a Unix host to a windows host. I have generated the key in my unix server and added them in the destination host. In the Destination they changed the ip address now i am not able to connect. I can see it is reaching till that server but i am not receiving that server... (2 Replies)
Discussion started by: Krrishv
2 Replies

9. Shell Programming and Scripting

sftp problem

Hi, I have a folder ABC. I have sftp executing from this folder successfully to other servers using keys which avoids passowrd prompt. The permissions for the folder are only for user.ie drwx------ But i need another id to access my folder and execute the scripts. So i changed the access... (2 Replies)
Discussion started by: borncrazy
2 Replies

10. Cybersecurity

sftp problem

Hi, I'm in the process of writting some scripts using sftp2 on a HP UX 11.11 machine. I've found that when I do an 'ls' command , even when in batch mode, it asks for me to 'press any key to continue or q to quit' after a screenful of data. Of course in batch mode this cause the script to hang.... (0 Replies)
Discussion started by: sudojo
0 Replies
Login or Register to Ask a Question