LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   YUM with sftp server (https://www.linuxquestions.org/questions/linux-networking-3/yum-with-sftp-server-4175413677/)

rany 06-27-2012 11:10 AM

YUM with sftp server
 
Hi,

My repositories are located at SFTP server.
I want to know, how can clients use YUM utilities, inorder to manage their packages.

Kustom42 06-27-2012 12:11 PM

I am not sure I follow you, did you actually set up a yum repository on your SFTP server or are your clients just SFTP'ing packages from the server?

unSpawn 06-28-2012 03:02 AM

Quote:

Originally Posted by rany (Post 4713405)
My repositories are located at SFTP server.
I want to know, how can clients use YUM utilities, inorder to manage their packages.

Searching Yum GIT shows me it doesn't support sftp://-like URI's. Unless you can't change, for hopefully compelling reasons, you will have to curse yourself when you experience related glitches, put up with potentially reduced functionality and throughput and put in way more effort to reach your goal.
So if you can changing your setup to use FTP instead would be less error-prone, easier and efficient.

Three methods to look into if you (think you should) persist:
- SSHFS: Using a pass-phrase-less, IP-range-confined, unprivileged SSH account chrooted in the repository tree, you could make FUSE-SSHFS mount the remote tree locally and use a file:// local repo configuration.
- DeleGate/9.0.4 supports gatewaying SFTP/SSH server for FTP or HTTP clients so you can still use a ftp:// repo configuration.
- Rsync-over-SSH the repo locally and use a file:// local repo configuration file.

rany 06-29-2012 05:51 AM

Thank for you response
I will present with more details what are my needs:
I have equipment with Linux distribution on it.
I would like to have abilites to upgrade SW packages, from both secure (SFTP) and non secure (FTP) servers.
When the upgrade is needed, the user should define the transfer attributes; ip, path, user name, password and protocol type.

Now, regard your solutions:
Option 1 (sshfs) - The mount solution has major differ function than regular file transfer operation
Option 2 - will not enable me to function simultaneous FTP other operations
Option 3 - the same problem idea like option 1

Do you have any other idea?

unSpawn 06-29-2012 09:54 AM

Quote:

Originally Posted by rany (Post 4714880)
secure (SFTP) and non secure (FTP) servers

No, that's FTPS (you know, like HTTPS, POP3S and IMAPS). SFTP is related to SSH.


Quote:

Originally Posted by rany (Post 4714880)
When the upgrade is needed, the user should define the transfer attributes; ip, path, user name, password and protocol type.

The procedure you outlined is
0) cumbersome because with a properly configured configuration file no user should need to present that information, it does come across as
1) untrustworthy, potentially resulting in an incomplete update or worse because common usage should be to just run 'yum update' or 'yum update [packagename]' and probably
2) an erosion of the package management best practices the distribution did set.



Quote:

Originally Posted by rany (Post 4714880)
Do you have any other idea?

Unless you forgot to mention even more details you best use anonymous FTP.
If Yum doesn't deal with FTPS then either don't use FTPS or bridge it to regular anon FTP.

rany 07-05-2012 06:14 AM

Hi,

My application must support SFTP server (over SSH) and the U/I for the user need to be like FTP configuration settings.

As I know, YUM uses Curl library for it trnasport layer.
This library support also SFTP protocol.
I wounder, how much effort does it needed, for making changes in YUM code, in order to support also SFTP protocol.
Do you have any quess for this ?


All times are GMT -5. The time now is 07:32 AM.