RE: Remote Administration Problem

2004-03-26 Thread Kevin Greenidge
What kind of error messages do you get? I am assuming if you are trying
to login directly as root then you'll have to enable root login in the
/etc/ssh/sshd_config and uncommenting PermitRootlogin yes. This is a big
security risk to login directly as root let alone telnet. Also make sure
it's not blocked by a firewall or port 22 is not blocked by your ISP.
Only speaking from experience here as I've had a similar issue. 

Kevin  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hamed Abangar
Sent: Friday, March 26, 2004 2:43 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Remote Administration Problem

Dear members
 
I'm new to this list and also  I'm new to FreeBSD environment .I'm
network administrator in an isp.Recently i have changed our Internet
servers from Linux to freebsd ( cache servers , dns servers , firewall ,
mail servers) . Every things works well , but i have a problem.I can't
control my servers remotely.I have activated SSH and telnet but i can't
login to my server with root account from my home or every other where.
Each time i want to check my servers , i must go to my server's room and
this is not good for a network administrator , i didn't have this
problem with Linux.
 
Any one can help me?
 
thanks 
Hamed Abangar


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote Administration Problem

2004-03-26 Thread Peter Risdon
Hamed Abangar wrote:

Dear members

I'm new to this list and also  I'm new to FreeBSD environment .I'm network administrator in an isp.Recently i have changed our Internet servers from Linux to freebsd ( cache servers , dns servers , firewall , mail servers) . Every things works well , but i have a problem.I can't control my servers remotely.I have activated SSH and telnet but i can't login to my server with root account from my home or every other where.

Remote root logins are disabled by default. This is probably the best 
way to leave things. You can log in as a user then su to root, use sudo 
or whatever.

If you do want to modify this, edit /etc/ssh/sshd_config and alter the line:

#PermitRootLogin no

to read:

PermitRootLogin yes

then restart sshd

PWR.



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote Administration Problem

2004-03-26 Thread Peter Risdon
Peter Risdon wrote:

Hamed Abangar wrote:

 i can't login to my server with root account from my home or every 
other where.

Remote root logins are disabled by default. This is probably the best 
way to leave things. You can log in as a user then su to root, use 
sudo or whatever.
I should have mentioned, the user must be in the wheel group to be 
allowed to su to root.

PWR.



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Remote Administration Problem

2004-03-26 Thread Andras Kende

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hamed Abangar
Sent: Friday, March 26, 2004 2:43 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Remote Administration Problem

Dear members
 
I'm new to this list and also  I'm new to FreeBSD environment .I'm network
administrator in an isp.Recently i have changed our Internet servers from
Linux to freebsd ( cache servers , dns servers , firewall , mail servers) .
Every things works well , but i have a problem.I can't control my servers
remotely.I have activated SSH and telnet but i can't login to my server with
root account from my home or every other where. Each time i want to check my
servers , i must go to my server's room and this is not good for a network
administrator , i didn't have this problem with Linux.
 
Any one can help me?
 
thanks 
Hamed Abangar


-
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



Hamed,

You can't ssh into as root by default..

Create a new user in the wheel group...  
ssh as user then su to root

Or

/etc/ssh/sshd_config 
PermitRootlogin yes



Andras Kende
http://www.kende.com



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote Administration Problem

2004-03-26 Thread Matt Coe, CCNA
Hamed Abangar wrote:

Dear members

I'm new to this list and also  I'm new to FreeBSD environment .I'm network administrator in an isp.Recently i have changed our Internet servers from Linux to freebsd ( cache servers , dns servers , firewall , mail servers) . Every things works well , but i have a problem.I can't control my servers remotely.I have activated SSH and telnet but i can't login to my server with root account from my home or every other where. Each time i want to check my servers , i must go to my server's room and this is not good for a network administrator , i didn't have this problem with Linux.

Out of the box, FreeBSD disallows remote root logins. Instead, you can 
make a separate user part of the wheel group and su into root from 
there. I wouldn't necessarily advise doing all of your activity as the 
wheel'd user, though I haven't been playing with my FreeBSD machines on 
a sufficiently frequent basis to be able to say, one way or the other, 
if that would definitely cause problems.

--
Matt Coe, CCNA
Member-At-Large, Dalhousie University CS Society Fall 2003
'Ford! There's an infinite number of monkeys outside who want to talk
to us about this script for Hamlet they've worked out.'
 -- DNA, 'The Hitch Hiker's Guide to the Galaxy', Arthur Philip Dent
Sick of long-distance bills? Get Skype! www.skype.com

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote Administration Problem

2004-03-26 Thread Martin Hudec
Hi Hamed,

Why are you using telnet for administration, when there is SSH available? :)

In default configuration SSH is not allowing to log in as [EMAIL PROTECTED]

What you want to enable is:

PermitRootLogin yes

in /etc/ssh/sshd_config

But is it difficult for you to log in there as normal user and then switch
by su to root? su is checking in, who is in group wheel, and if you are
in wheel group, then you are allowed to su to root, else you are blocked to
su to root.

You wouldn't have to go to server room, if you would create also another
ordinary user account to which you will be loggin in when using ssh.

cheers,
Martin

On Fri, Mar 26, 2004 at 12:43:26AM -0800, Hamed Abangar ([EMAIL PROTECTED]) wrote:
 Dear members
  
 I'm new to this list and also  I'm new to FreeBSD environment .I'm network 
 administrator 
 in an isp.Recently i have changed our Internet servers from Linux to freebsd ( cache 
 servers , dns servers , firewall , mail servers) . Every things works well , but i 
 have 
 a problem.I can't control my servers remotely.I have activated SSH and telnet but i 
 can't login to my server with root account from my home or every other where. 
 Each time i want to check my servers , i must go to my server's room and this is not 
 good 
 for a network administrator , i didn't have this problem with Linux.
  
 Any one can help me?
  
 thanks 
 Hamed Abangar

-- 
=--
:
:. kind regards
:.. Martin Hudec
:.:
:.: :m: +421.907.303393
:.: :@: [EMAIL PROTECTED]
:.: :w: http://www.aeternal.net



pgp0.pgp
Description: PGP signature