Visit Our UNIX and Linux User Community


Delay when logging in remote


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Delay when logging in remote
# 1  
Old 10-04-2001
Question Delay when logging in remote

Hello again!

When I log in to my computer (Ultra 5 running Solaris 8) from a pc (FTP or Telnet) I have to wait forever (about 30 seconds) before I can log in. Is this some kind of security thing? Can I turn it of? How?

Anders
# 2  
Old 10-05-2001
Most likely when you login your system is not able to reverse-lookup your IP address... When you login type:

who am i

You will likely see an ip address in the last field...


Try to nslookup on this last field:

nslookup ip.ip.ip.ip

----
While you are at it, answer the following questions:

Do you have a DNS server?
How is your nsswitch.conf file setup? (It's in /etc/nsswitch.conf if you are curious.).. Can you cut-and-paste this file into your reply?..

---
Once you have done what I have suggested and provided the information I have request I can give you a solution to your problem..

- dEvNuL
# 3  
Old 10-05-2001
Hi! Here is the information you asked for.

I colud not find a nslookup command!

Hope this can help you help me! :-)

Anders

$ who am i
anwi pts/5 okt 5 17:28 (192.168.43.34)

$ nslookup 192.168.43.34
nslookup: not found

$ cat /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
ipnodes: files
# Uncomment the following line and comment out the above to resolve
# both IPv4 and IPv6 addresses from the ipnodes databases. Note that
# IPv4 addresses are searched in all of the ipnodes databases before
# searching the hosts databases. Before turning this option on, consult
# the Network Administration Guide for more details on using IPv6.
#ipnodes: files dns

networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files
# 4  
Old 10-05-2001
Probable solution: Add an entry for 192.168.43.34 in your /etc/hosts file. Something similar to:

Code:
192.168.43.34  mymachinename


Replace "mymachinename" with whatever hostname is appropriate.
# 5  
Old 10-06-2001
Yep.. What pxt said.. That should solve your problem.... Did it?..

- dEvNuL
# 6  
Old 10-08-2001
The ip number of the sun computer is already in the hosts file.
192.168.43.7 thirdparty

The other ip number was to my pc.

bash-2.03$ cd /etc/
bash-2.03$ cat hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.43.7 thirdparty loghost
# 7  
Old 10-08-2001
Try to check the size of /usr file system

by the command # df -k /usr

if the size used is more than 95% than try to free
a part
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #736
Difficulty: Medium
In 1982, Commodore introduced the Commodore 64 as the successor to the VIC-20.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to login with other set of credentials while remote logging?

Below is the code. I need to login into the router if the 1st set of credentials are correct.. if wrong... then it has to check with 2nd set of credentials.. => if the credentials are correct... then it should continue.. => if the credentials are wrong(should not check for 2nd time... then... (0 Replies)
Discussion started by: scriptscript
0 Replies

2. AIX

Remote Script command logging question

I've noticed that when running a script that connects to a number of our servers (to essentially run batch commands) that the commands aren't logged in the user's .sh_history or .bash_history files. Is there a place where this is logged (assuming the script itself isn't doing the logging and I'm... (3 Replies)
Discussion started by: kneemoe
3 Replies

3. SCO

sco remote logging problem

Hello, I am trying to write log from sco box to a remote host. We already have that setting working for linux server using syslog. With this setting(on LINUX) *.* @remote-host for sco I have this *.debug /usr/adm/syslog *.* ... (3 Replies)
Discussion started by: polestar
3 Replies

4. Solaris

Logging remote telnet sessions via script

Hi, My requirement - for security purpose - I want all root logins to my solaris servers are done by a script kept in a separate unix box. This script will telnet into remote solaris server with root user and log every session via log file. Now my purpose is to log every telnet session... (3 Replies)
Discussion started by: rahul_jain250
3 Replies

5. Shell Programming and Scripting

Logging Remote SSH command (cannot log a java output)

Hi all I'm creating a script that runs a few commands on some boxes and everything can be logged EXCEPT the java -version command, there doesn't seem to be any output... Can anyone help explain why this does not work? Do I need to do something extra to append the output from the java... (3 Replies)
Discussion started by: Keepcase
3 Replies

6. Cybersecurity

how to configure ssh2 for not asking password when logging from remote

Hi gurus, I am trying to configure ssh2 for not asking passwords when logging in from a remote machine, but it is failing. I ran the command based on the oracle documentation. down below are the steps, please do let me know how to get this solved. the steps followed $ /usr/bin/ssh-keygen2 -t dsa... (2 Replies)
Discussion started by: arunrao_oradba
2 Replies

7. AIX

how to configure ssh2 for not asking password when logging from remote

Hi gurus, I am trying to configure ssh2 for not asking passwords when logging in from a remote machine, but it is failing. I ran the command based on the oracle documentation. down below are the steps, please do let me know how to get this solved. the steps followed $ /usr/bin/ssh-keygen2 -t dsa... (1 Reply)
Discussion started by: arunrao_oradba
1 Replies

8. Shell Programming and Scripting

Problem with logging into remote host

Hi All, I am using a script for remotely logging into a rhost using telnet and shutdown a server. The script is as follows. IP = 10.24.12.23; export IP UNAME = username ; export UNAME PWD = password; export PWD CRDIR = /etc/rc.d/init.d ; export CRDIR echo "logging into remote... (4 Replies)
Discussion started by: patil_reddy
4 Replies

9. Shell Programming and Scripting

logging to remote server

Hi, I want to log-in to a remote server using shell script. The server requires the following while allowing a connection: username password one - letter authorisation. How can i implement this in my script? thanks, abey (6 Replies)
Discussion started by: abey
6 Replies

Featured Tech Videos