Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
No, that's FTPS (you know, like HTTPS, POP3S and IMAPS). SFTP is related to SSH.
Quote:
Originally Posted by rany
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
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.
Last edited by unSpawn; 06-29-2012 at 09:55 AM.
Reason: //More *is* more
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 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.