07-11-2001
The first step in blocking remote logins is also one of the first steps everyone should do after bringing up a new server:
(1) Edit the /etc/inetd.conf file and comment out all services you will not immediately need;
(2) Examples (for me) include all the r* commands, finger, etc.
This is critical for security and is just a good practice. Don't leave these services running unless you actively use them.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
i have recently switched to unix environment,i am trying to make a shell script
which logs on to the remote machines and plays some commands and collects the out put into a file.but i am not able to create any file on remote hosts.see
the sample code .
rsh hostname -l username << ENDTAG... (4 Replies)
Discussion started by: Raom
4 Replies
2. UNIX for Dummies Questions & Answers
Hi Everyone,
Well I am not sure if this right forum. I have install Redhat 5 enterprise. I have everything running. I have configured vncserver. Starts with out errors. I am trying to connect for a XP machine to my RedHat server. I can connect from my XP machine through VNC viewer but I get... (1 Reply)
Discussion started by: Peterh
1 Replies
3. Shell Programming and Scripting
hi all ,
i need the command for remote login in to another terminal, came accross by using "tty" command. please suggest and help me out in this.
Regrds
Sridhar. (1 Reply)
Discussion started by: Sridhar_dev
1 Replies
4. AIX
dear all,
i have a problem, when i try to login to CDE on AIX remotely using xmanager i get a dead screen.
any solution
thanks (1 Reply)
Discussion started by: bondoq
1 Replies
5. Linux
Hi,
How to find remote Linux box login account without login in to that box?
I don't have login account at my remote Linux box. But I need who are all having login account. How do I findout?
Thanks,
--Muthu. (3 Replies)
Discussion started by: Muthuselvan
3 Replies
6. Programming
Hi,
i have written a program that provides the remote login for the system whose IP is specified.
the program is working correctly on the same machine but its not working when i try to communicate with the other system.
i am attaching both client and server programs.
Please help.
... (1 Reply)
Discussion started by: MrUser
1 Replies
7. Solaris
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
8. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
9. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
10. Programming
Hello Good Day / Guten Tag....
I have to login the server and the user profile contains some scripts which need the inputs to be taken from the keyboard.
So I use the method to conn.authenticateWithKeyboardInteractive(username, new InteractiveCallback() {
public String... (1 Reply)
Discussion started by: Sanalkumaran
1 Replies
LEARN ABOUT REDHAT
sserver
SSERVER(8) System Manager's Manual SSERVER(8)
NAME
sserver - sample Kerberos version 5 server
SYNOPSIS
sserver [ -p port ] [ -S keytab ] [ server_port ]
DESCRIPTION
sserver and sclient are a simple demonstration client/server application. When sclient connects to sserver, it performs a Kerberos authen-
tication, and then sserver returns to sclient the Kerberos principal which was used for the Kerberos authentication. It makes a good test
that Kerberos has been successfully installed on a machine.
The service name used by sserver and sclient is sample. Hence, sserver will require that there be a keytab entry for the service "sam-
ple/hostname.domain.name@REALM.NAME". This keytab is generated using the kadmin(8) program. The keytab file is usually installed as
"/etc/krb5.keytab".
The -S option allows for a different keytab than the default.
sserver is normally invoked out of inetd(8), using a line in /etc/inetd.conf that looks like this:
sample stream tcp nowait root /usr/kerberos/sbin/sserver sserver
Since sample is normally not a port defined in /etc/services, you will usually have to add a line to /etc/services which looks like this:
sample 13135/tcp
When using sclient, you will first have to have an entry in the Kerberos database, by using kadmin(8), and then you have to get Kerberos
tickets, by using kinit(8). Also, if you are running the sclient program on a different host than the sserver it will be connecting to, be
sure that both hosts have an entry in /etc/services for the sample tcp port, and that the same port number is in both files.
When you run sclient you should see something like this:
sendauth succeeded, reply is:
reply len 32, contents:
You are nlgilman@JIMI.MIT.EDU
COMMON ERROR MESSAGES
1) kinit returns the error:
kinit: Client not found in Kerberos database while getting initial credentials
This means that you didn't create an entry for your username in the Kerberos database.
2) sclient returns the error:
unknown service sample/tcp; check /etc/services
This means that you don't have an entry in /etc/services for the sample tcp port.
3) sclient returns the error:
connect: Connection refused
This probably means you didn't edit /etc/inetd.conf correctly, or you didn't restart inetd after editing inetd.conf.
4) sclient returns the error:
sclient: Server not found in Kerberos database while using sendauth
This means that the "sample/hostname@LOCAL.REALM" service was not defined in the Kerberos database; it should be created using kadmin, and
a keytab file needs to be generated to make the key for that service principal available for ssclient.
5) sclient returns the error:
sendauth rejected, error reply is:
" No such file or directory"
This probably means sserver couldn't find the keytab file. It was probably not installed in the proper directory.
SEE ALSO
sclient(1), services(5), inetd(8)
SSERVER(8)