LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-14-2004, 08:37 PM   #1
lmcilwain
Member
 
Registered: Dec 2003
Location: Maryland
Distribution: Fedora, Ubuntu, Centos, FreeBSD
Posts: 390

Rep: Reputation: 31
priv port forwarding over ssh


Hello all,

I have been trying to figure out a way to forward some of the priv ports over ssh. I am runing mdk 10 and when I try to do the following command:

sudo ssh \
-L 5902:localhost:5902 \
-L 32:localhost:32 \
-X -C -c blowfish user@host.domain.com

I get prompted with my root password (or so I think) and once I put it in I get the following error:

sendmail: warning: My hostname Fangorn_Forest is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postdrop: warning: My hostname Fangorn_Forest is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postdrop: warning: unable to look up public/pickup: No such file or directory
lmcilwain is not in the sudoers file. This incident will be reported.

I don't know where my sudoers file is to be able to fix this... If that is all it takes is an entry there.

Can anyone help?

Thanks,
 
Old 11-16-2004, 09:31 AM   #2
bignerd
Member
 
Registered: Nov 2004
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98

Rep: Reputation: 15
Re: priv port forwarding over ssh

Quote:
Originally posted by lmcilwain
Hello all,

I have been trying to figure out a way to forward some of the priv ports over ssh. I am runing mdk 10 and when I try to do the following command:

sudo ssh \
-L 5902:localhost:5902 \
-L 32:localhost:32 \
-X -C -c blowfish user@host.domain.com

I get prompted with my root password (or so I think) and once I put it in I get the following error:

sendmail: warning: My hostname Fangorn_Forest is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postdrop: warning: My hostname Fangorn_Forest is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
postdrop: warning: unable to look up public/pickup: No such file or directory
lmcilwain is not in the sudoers file. This incident will be reported.

I don't know where my sudoers file is to be able to fix this... If that is all it takes is an entry there.

Can anyone help?

Thanks,
As root run visudo. This will open your sudoer file (the approved way) and allow you to make changes. :wq to save your changes. If you are not familiar with the sudoers file format or how to make changes with visudo either man it or post back.
 
  


Reply



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
SSH Port Forwarding wwnexc Linux - Networking 4 09-29-2005 01:26 AM
SSH Port forwarding WRSpithead Linux - Networking 1 04-18-2005 04:09 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 09:11 AM
ssh, and port forwarding Tricky Linux - Networking 3 01-06-2003 07:50 PM
SSH port forwarding tarballedtux Linux - Networking 2 05-29-2002 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration