1830938 Members
2147 Online
110017 Solutions
New Discussion

Re: ssh in ivm

 
Jorge Pons
Trusted Contributor

ssh in ivm

Hi

the question is about "timeout" when I connect to a IVM guest. I said "timeout" because I loose the screen, when I do, for example "ll". After this, I type touch "hola", and this file is created, but I cant see anything in this session.

If I connect with Telnet, I haven´t any problem

The HW is Blade 860c i2 into C7000 chassis with Virtual Connect. I have also VLANs that are created in vswitch.

Host: 11.31, Guest 11.23. IVM 4.2

Thnaks in advance, Jorge
21 REPLIES 21
ani007
Super Advisor
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi ani007

Thanks for your rapid response.
I don´t think this could be the problem because is not at x seconds, it only loose the screen with some commands.

Thanks
ani007
Super Advisor

Re: ssh in ivm

is there anything in syslog
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi

only when the connection start:

Oct 22 13:27:31 ivm1 sshd[13577]: Accepted keyboard-interactive/pam for root from 172.26.200.20 port 4002 ssh2

when the connection loose nothing in syslog


ani007
Super Advisor

Re: ssh in ivm

I am not sure ..but can u pls check what is the value /etc/profile & /etc/csh.login


TMOUT=??
export TMOUT
Global file /etc/profile

for csh

logout=??
for all csh users /etc/csh.login
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi Ani

I send you 2 files.

Thanks
ani007
Super Advisor

Re: ssh in ivm

have u tried to restart sshd? if not then pls restart it once & chk.I am sorry for the delay.
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi Ani

dont worry for delay.
I restart sshd daemon and the result is the same, the "screen lost".
I have another ivm in other Blade in the same chasis and have the same problem. both virtual machines are 11.23

Regards
ani007
Super Advisor

Re: ssh in ivm

please send me /etc/ssh/sshd_config file.(simple notepad attachment).
I am also sending you one attachment, but not sure whether it will be helpful or not.pls gothrough it.
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi

I send you the sshd_config (its not in /etc/ssh/sshd_config).

Now I see yout attach.

Thanks, Jorge
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Sorry Ani

is for HPUX? I dont remember the lsnetsvc command, and there are some thing that I dont understand very well (like User ID Admin)

Thanks
ani007
Super Advisor

Re: ssh in ivm

i am sending you one ex of linux box(Configure the /etc/ssh/sshd_config file). edit the following in sshd_config file. & then restart the sshd.don't forget to backup the current sshd_config file before editing.


Port 22
ListenAddress 192.168.1.1
HostKey /etc/ssh/ssh_host_key
ServerKeyBits 1024
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
IgnoreRhosts yes
IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding no
PrintMotd yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords no
AllowUsers admin
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi Ani

It doesnt work. I think the problem is the echo of connection.

ani007
Super Advisor

Re: ssh in ivm

grep -i inetd /var/adm/syslog/syslog.log -post it in simple notepad.

grep -i ssh /etc/services. pls send me
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi

Is end you a txt with grep of syslog. in /etc/services is not ant line with ssh

Thanks, Jorge
ani007
Super Advisor

Re: ssh in ivm

On the server, login as root and edit /etc/ssh/sshd_config and add the line:

ClientAliveInterval 60

Donâ t forget to restart sshd on the server after you save the file. don't forget to tk the bckup before editing the file.

Jorge Pons
Trusted Contributor

Re: ssh in ivm

Hi Ani

I dont think the problem is time alive, I think the problem is when, for example, I start sam, the screen not update and I cant see anything. Also in /etc I type "ll" and lost local echo, and I dont see anything, but after this I do "touch hola" and hola file is created.

Jorge
ani007
Super Advisor

Re: ssh in ivm

please log a case with vendor
Jorge Pons
Trusted Contributor

Re: ssh in ivm

Thanks a lot, Ani007
ani007
Super Advisor

Re: ssh in ivm

dear friend i am sorry i am not able to help you ...
ani007
Super Advisor

Re: ssh in ivm

please let me know the solution once u solve it.