we are just confused about a strange problem on one server in production (XServer, running OSXS 10.5.6). It works normal for month. Since two day everthing seems to be fine also with one exception.
When we connect trough ssh we won't get a tty session. For testing purposes, we enabled telnet and try to connect from another server behind the firewall to the machine. But no "login" occured.
If you launch something like ssh user@machine "my command" you will get the output as normal.
We don't know the reason. Fact is, no system update oder software update was done since the last weeks and ssh worked properly till Saturday.
I think it's no problem of ssh. It's something behind ssh. But ssh -vvv won't give more information.
So our current workaround is ssh user@server "bash". But this is extremly uncomfortable without concrete ttys. Using this way and e.g. running vi will give the short information:
So this is also a hint, that ssh works, but something behind doesn't work. We don't find "interesting" things in message logs or so.
Any hints for further analyze?
Do anybody now which service or process will be responsible to return a "tty session" to ssh or telnet?
In bash, you can do something like this:
#!/bin/bash
echo -n "What is your name? " > /dev/tty
read thename < /dev/tty
How can I do the same in python?
I have a python script that has the following content:
#!/usr/bin/python2.7
import getpass
import sys
import telnetlib
import... (2 Replies)
i am trying to make powerterm not echo back this charactor.
≥
When I press control-C I get it that telnet charactor/garbage echos back.
how to turn off? where? what config? is there something in powerterm
to switch on/off? I do not see it.
Redhats offical statement is:
"I... (10 Replies)
Scenario:
I would like the ability to be able to use the cli on a client that has remotely connected to me via my ssh server in my office and use their terminal to work remotely if I am in another remote location.
Ex.
The client reverse ssh's to my remote ssh server in my office.
ssh... (5 Replies)
(/home/user1)-> more script.sh
#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages
sleep 2;
echo "exit" ) | telnet
Please use code tags next time for... (2 Replies)
Hi,
I need to provide more than one character to "> /dev/tty" through terminal/keyboard input, I have this:
ok=false
while
do
echo " Enter r1 to reformat "
> /dev/tty
read choice
case $choice in
)
echo " bla bla bla "
;;
done
However, in this way,... (3 Replies)
Hey folks! I'm trying to run a tcpdump command that monitors for possible malicious traffic. I want to be able to run this on any of several remote boxes that I monitor which all have different capture interfaces. I've gotten the script to the point where it logs into the box and attempts to run... (8 Replies)
I'm hoping someone can help me out here.
I'm having a problem on my Red Hat Enterprise 5 Server where my tty devices "tty" are being set to read only permissions.
I need them to be set to 777 in order to write to the serial printers through a custome application.
I have gone through many... (2 Replies)
I'm completely new to Unix, but familiar with Mac OSX. I've just discovered the command line terminal feature of this new OS and I'm trying to learn how to telnet into my host's server to change permissions to allow executable cgi scripts for my website. Is there anyone who might be able to... (2 Replies)