Solved

No value for $TERM and no -T specified

Posted on 2010-09-18
6
933 Views
Last Modified: 2012-05-10
Hi,
We got a error message when trying to logon to a virtual Centos with ssh (putty). Every thing runs in Proxmox (OpenVZ).

The error message is: "No value for $TERM and no -T specified"

I have tried to set $TERM in /etc/bashrc and ~/.bashrc but with no succes. I have also tried to export the evironment från putty.

In the begining the virtual machine worked as it should but for some reason not any more. The machine runs but not the root session.
0
Comment
Question by:riverman
  • 3
  • 3
6 Comments
 
LVL 6

Expert Comment

by:Jelcin
ID: 33707764
Hi, what term type did you try to set in ~/.bashrc?
0
 

Author Comment

by:riverman
ID: 33708139
Hi Jelcin,
I tried xterm and xterm-color.

/Måns
0
 
LVL 6

Expert Comment

by:Jelcin
ID: 33708336
So you can't login as root remotely is this right? Can you use "sudo" when logged in as a user which can remotely login?

What did happen that the server refuses remote login as root? Means did you install or did you configure something?

Are there any further error messages? (e.g. in "/var/log/messages" or "/var/log/syslog" or "/var/log/auth.log")

What do you see in "/dev" directory?
What does the command "mount" output?
Is udev running? ("ps aux | grep udev")
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:riverman
ID: 33708437
This what I found (doesn't look good):
/var/log/secure:
Sep 18 14:39:30 river-srv6 sshd[13641]: Accepted password for root from 82.117.102.70 port 63003 ssh2
Sep 18 14:39:30 river-srv6 sshd[13641]: pam_unix(sshd:session): session opened for user root by (uid=0)
Sep 18 14:39:30 river-srv6 sshd[13641]: error: openpty: No such file or directory
Sep 18 14:39:30 river-srv6 sshd[13641]: error: session_pty_req: session 0 alloc failed

/var/log/init.log
Loading default keymap (us): /etc/rc.d/rc.sysinit: line 396: /dev/tty0: No such file or directory
[FAILED]
0
 
LVL 6

Accepted Solution

by:
Jelcin earned 500 total points
ID: 33708506
maybe this could help you...

http://24x7servermanagement.com/blog/?p=720
0
 

Author Closing Comment

by:riverman
ID: 33710905
Thanks very much!

The link you sent me was easy to follow and fixed all my problems!

I did this:
1. Edit the file /etc/rc.sysinit of the VPS server

2. Comment the line
#/sbin/start_udev

3. Add the following lines after /sbin/start_udev:

/sbin/MAKEDEV tty
/sbin/MAKEDEV pty

Then a reboot of the VPS.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now