Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

No value for $TERM and no -T specified

Posted on 2010-09-18
6
Medium Priority
?
1,032 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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 2000 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

648 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