Solved

No value for $TERM and no -T specified

Posted on 2010-09-18
6
956 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to virtualise a remote Linux server 2 69
linux redhat 7.2 10 74
awk sed 8 44
Remote desktop Ubuntu from Windows 10 5 64
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

803 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