LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-25-2011, 08:35 AM   #1
maxhen
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Privileged ports can only be forwarded by root (how to resolve this issue)


I've opened ftp server in my local LAN (I've got home router with USB hard drive). It allows to open access only on FTP port 21. But I don't want to open unsecure FTP to the world, thus I use SSH tunneling - I connect to my PC by SSH with redirecting local port 21 to <router IP>:21. And my PC says: "Privileged ports can only be forwarded by root." I think, there is a solution:connecting ssh by root, but it is unsecure to open root access. Is there a way to redirect privileged ports on non-root ssh connection?

Last edited by maxhen; 10-25-2011 at 08:38 AM.
 
Old 10-25-2011, 09:03 AM   #2
maxhen
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
I've solved my problem. The issue is on client side, not server. So you need to run ssh command with superuser privileges, or use non-privileged port on local side.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Open Privileged Ports? LinuxGeek Linux - Security 6 09-10-2006 08:37 AM
Privileged ports can only be forwarded by root??? sovietpower Linux - Networking 1 03-10-2005 05:45 AM
sendmail and forwarded ports question red.lego.man Linux - Security 1 08-02-2004 02:25 PM
using privileged ports below 1024 not possible AS ROOT??? flipper333 Slackware 2 01-23-2004 07:35 PM
Change UID of process/Privileged ports syntac Linux - General 1 04-17-2003 07:07 AM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration