?
Solved

No value for $TERM and no -T specified

Posted on 2010-09-18
6
Medium Priority
?
1,008 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

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