LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-08-2005, 11:19 PM   #1
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 207

Rep: Reputation: 30
Privileged ports can only be forwarded by root???


I have an ssh server and a vnc server. I am trying to accomplish an ssh tunnel. I have read the instructions. I wanna have traffic come through to port 80 and then forward to the vnc server(yes I know 80 is http thats fine). I get the privileged ports can only be forwarded by root. Running the command as root(yes I also know this is a bad thing) it gives me host key verfication fail. It does this also when I set the port higher than 1024 as a normal user so I guess my question is how do I generate a valid host key to accomplish this??

I know it is something like ssh_keygen -t but im not sure exactly what it should be

Im guessing I need to generate a key for my user account but I don't have access to ssh_keygen as a user and im not sure if it is safe to change the access on ssh_keygen

Last edited by sovietpower; 03-08-2005 at 11:25 PM.
 
Old 03-10-2005, 05:45 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
It probably means that the server host keys have changed since you last connected as root. Try editing /root/.ssh/known_hosts and remove the line starting with the remote machine's IP or hostname. You should be able to connect as root after that.

If it doesn't work, can you post the output from the ssh command with "-vv" added.
 
  


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
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
opening ports below 1024 without being root? meks Linux - Networking 2 12-25-2003 06:05 PM
Change UID of process/Privileged ports syntac Linux - General 1 04-17-2003 07:07 AM
Mail to root forwarded to normal user email client? undecipherable Linux - Software 1 11-21-2002 01:47 PM


All times are GMT -5. The time now is 03:41 PM.

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