Visit Our UNIX and Linux User Community


SFTP with Suse 9.3 need help with Update ssh

 
Thread Tools Search this Thread
Operating Systems Linux SuSE SFTP with Suse 9.3 need help with Update ssh
# 1  
Old 10-20-2009
SFTP with Suse 9.3 need help with Update ssh

Hi eryone, I'm new here. Since I'm a graphic designer and not an admin, I need to learn a lot from the first step, so please be patient with me. ;-) Most of my skills are self taught with howtos, so there might be some lack of wisdom in basics. I've setup a Suse-System (9.3) with a few upload functions for customers of our small company.

Ok my Problem is... one of our cusotmers asked me to give him an SFTP upload for some test data. I already setup a user and login and upload works fine with SFTP.

But now the user has access to my whole filesystem (don't want that) and i found that chroot for the user might solve my problem.

My ssh Version is 3.9 and doesn't support chroot, so I've been looking for a howto or something that helps me to update my Openssh to a newer Version which supports chroot. I spend 3 hours reading without a solution and stranded here. :-)

Any ideas where i might find a howto for this update or any other suggestion how i can lock a user in one folder?
# 2  
Old 10-21-2009
SUSE 9.3 is fairly old now. Have you checked repositories for the packages? Have you considered updating the system? There are probably other packages that have bugs or flaws that could become an issue. You could always download the source and package an rpm yourself, however.
# 3  
Old 10-22-2009
Thanks for your reply. Since the Problem was hasty I decided to setup a second server with OpenSuse. This worked fine and my chrooted sftp Login works already.

I know that updating the system is necessary, but there are quite a few users and different services on the system. I fear that updating might chaos my upload server and this could be fatal for my company.

However I decided to use the OpenSuse System as backup for my 9.3 and when the new system is installed with everything needed I will try to upgrade the 9.3 to lock the security issues. Since I do this work along my regular stuff it sometimes gets out of sight.

Do you think updating might be a solution or is a complete new installation the best option?
# 4  
Old 10-22-2009
I would recommend a side by side migration. Alternately, you could try to put a virtualized environment into place on the 9.3 server. If you used a second virtual disk container on the host as the place where the files are saved, you could mount that virtual disk as a loopback device and then see the files. It would work similarly to a chrooted environment.

Essentially, it would be like this:

Host (9.3) with 2 virtual disks A and B
A holds the OS of OpenSUSE 11.x
B holds the file system where the SFTP is located

Host mounts disk B to /usr/local/dropbox (example only) [read only]


Your remote user connnects to the virtual server, your local users can connect to the 9.3 server. eventually, you can just migrate the virtual server using any host you wish, even an opensuse 11.x box itself with minimal downtime
the only difference is, the server itself is virtualized.

Last edited by mark54g; 10-22-2009 at 05:23 PM..

Previous Thread | Next Thread
Test Your Knowledge in Computers #821
Difficulty: Easy
HTML5 is a software solution stack that defines the properties and behaviors of web page content by implementing a markup based pattern to it.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert SSH portion to SFTP

I just discovered that my company cant use ssh because they have so wack way of retrieving files without using key-authication. I need to convert a portion of my script form ssh to sftp. Here I am logginginto the machine to print a list of files. while read line; do host=$line ssh... (2 Replies)
Discussion started by: MJCreations
2 Replies

2. UNIX for Dummies Questions & Answers

SSH from MacOS X or PPC Debian to SUSE # Odd terminal chars # Eventual scripting

Well. I was recently given access to my work's machine via SSH. I'm pretty sure it's a SUSE machine, uname -a gives Linux machinename 2.6.16.60-0.54.5-bigsmp #1 SMP Fri Sep 4 01:28:03 UTC 2009 i686 i686 i386 GNU/Linux I'm not doing anything all that exciting, mostly data entry stuff. We... (14 Replies)
Discussion started by: pagrus
14 Replies

3. Shell Programming and Scripting

sftp ssh-keygen

sftp username@host <<EOF lcd /home/dirA cd /home/dirB mput *.txt exit EOF Hi, i have done the keygen-ssh settings but rite now I log through putty I enter my credentials and then when i successfully log in, then I issue the command ssh server name then I again enter into the server but... (1 Reply)
Discussion started by: rahulsxn660
1 Replies

4. Solaris

SFTP from SSH2 to SSH

Hi, Earlier, I have configured SFTP successfully in my prev jobs. This time I have to configure SFTP for local server (uses SSH2) and remote server (uses SSH). I tried to search the forum. I did not find the right thread. I appreciate your help. The following is the additional info >... (5 Replies)
Discussion started by: bobbygsk
5 Replies

5. Solaris

Fsecure ssh client sftp 2.5

Is there any free version of Fsecure ssh client sftp we have. or need to buy license for this. Can you please let me know on this.thanks Regards. (6 Replies)
Discussion started by: vijill
6 Replies

6. Shell Programming and Scripting

Password less connection(sftp/ssh)

Dear All, I'm trying to configure a passwordless connection between two servers of HP-UX. i have srearched the configuration in google so many times and as per the guidence i have done all the steps, but still its not working and every time it is asking for password while trying to scp some file... (2 Replies)
Discussion started by: panknil
2 Replies

7. UNIX for Dummies Questions & Answers

Locked out of ssh and sftp

I've been having troubles where i get locked out of shh and sftp. It happens overnight and when i come in the next day i have been locked out and can't seem to log in to the server through ssh or sftp. It is a co location server and each day i am having to have the hosts restart my server. When... (2 Replies)
Discussion started by: timgolding
2 Replies

8. Shell Programming and Scripting

SSH and SFTP

remotePath=$1 fileName=$2 remoteUser=$3 remoteServer=$4 echo " if ; then echo '0'; else echo '1'; fi " > temp_command.log command1=`cat temp_command.log` ssh $remoteUser@$remoteServer $command1 rm temp_command.log Above code is to check whether the file in remote server is exist. It... (1 Reply)
Discussion started by: suigion
1 Replies

9. UNIX for Advanced & Expert Users

ssh/sftp failure connection

Hello, I just want to ask regarding the meaning of the error that we got using sftp: Connecting to <TARGET SERVER IP>... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (3 Replies)
Discussion started by: james_falco
3 Replies

10. AIX

SFTP Issue with ssh

Hello all, hopefuly this is the right place to post this. I am having an issue with a new sftp process on an AIX box. I created id_rsa.pub file and sent it to the person who runs the sftp process. He added the key to the authorized_Users (I only have phone contact with him and its an outside... (7 Replies)
Discussion started by: dbridle
7 Replies

Featured Tech Videos