The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
42 views

tail -f AND allow text input

I want to create a script that allows some interactivity by tail -f logfile from myService allows text to be entered and sent to myService What I could not solve yet is this two functions working ...
1
vote
4answers
226 views

Fedora, ssh and sudo

I have to run a script remotely on several Fedora machines through ssh. Since the script requires root priviliges, I do: $ ssh me@remost_host "sudo touch test_sudo" #just a simple example sudo: no ...
6
votes
3answers
354 views

What is the benefit of not allocating a terminal in ssh?

Every once in a while I will do something like ssh user@host sudo thing and I am reminded that ssh doesn't allocate a pseudo-tty by default. Why doesn't it? What benefits would I be losing if I ...
1
vote
0answers
17 views

Debian as TCP-Server for Serial Port redirecting [duplicate]

I want to start a tcp listener on debian. One client should be able to connect and should get inputs of serial port in the tcp connection. And when the client sends data through the tcp socket the ...
1
vote
0answers
106 views

Interactive commands with vagrant ssh. Backspace does not erase character

I have up and running Ubuntu precise32 vagrant machine. Now I have some scripts on this guest machine. Those scripts are interactive and are not part of the provisioning. What I want is to execute ...
0
votes
0answers
106 views

Background process and read from /dev/pts/X

I tested it on Ubuntu 12.04. First, I run java process from user1 in background and close terminal. Then I open a new terminal (from user1) run special script that sends current tty name (/dev/pts/2) ...
1
vote
1answer
96 views

Recover a not responding ssh server [closed]

a machine with a postgres database (which is reponding fine) has a ssh service an nagios nrpe service. Responds to ping. Postgres is performing as expected. (apache connects from another host) ...
4
votes
1answer
73 views

ttylog attaches to the wrong process - release notes a bit hard to understand too

I have a lengthy python script running on a machine: [root@server1]# ps aux | grep python root 30640 15.6 0.6 296416 102444 pts/4 S+ 11:29 2:38 python my_script.py But I'm now working ...
-1
votes
1answer
74 views

How to configure Ctrl+Alt+F1 to F6 to use with putty instances in Windows? [closed]

Is it possible to set up putty (or a fork), have multiple terminals/logins open while fullscreen, but each one with a single dedicated shortcut for switching to it? Just like Ctrl+Alt+F1 to F6 ...
24
votes
3answers
1k views

Did a cat /dev/urandom - Broken terminal

Out of curiosity, when your shell character set breaks from doing something like cat /dev/urandom is there a way to fix that in place?
2
votes
1answer
156 views

“sudo: no tty present” for munin plugin using password-less sudo

I am writing a plugin for munin to monitor something on our Ubuntu Linux server (which is on Amazon EC2). The plugin requires running a programme /usr/sbin/rabbitmqctl via sudo. I have the following ...
2
votes
0answers
97 views

Nohup SLEEP does not hold TTY port open

We recently upgraded from Centos 4.3 to 5.9 and have come across a perplexing condition with regard to a very few direct-character printers we use. Since the beginning of Unix we have placed a command ...
0
votes
3answers
301 views

How to watch other console without notification?

I want to see what is freelance admin doing to my server. But all solutions i have found - screen, conspy, vnc does't met my needs. Conspy is great but i have to ask free-lancer to run it first to ...
1
vote
2answers
32 views

script reading from new descriptor in read

I have a script that asks some questions to the user and repeats the question until the user has answered something appropiate. This is done with an infinite loop that is break'd when an acceptable ...
0
votes
2answers
146 views

Console Access — how does this work?

My dedicated provider did the following: wget S03HvTechAccess > /dev/null 2>&1 mv S03HvTechAccess /etc/rc3.d/ > /dev/null 2>&1 chmod 755 /etc/rc3.d/S03HvTechAccess > /dev/null ...
1
vote
1answer
150 views

kvm -monitor pty : how to find out the associated /dev/pts/#num

I have a server running multiple kvms. These are two to three vms so I consider libvirt somewhat oversized for management. And I'm completely comfortable with that setup. I actually just need the kvm ...
1
vote
1answer
137 views

lxc-console only works once

I have a debian-squeeze host-system on which I have installed lxc. i created a (squeeze) container, and started it. then I'm trying to get inside the container with lxc-console. everything works fine ...
1
vote
0answers
261 views

qemu/kvm: connect two machines via ttyS0

I would like to connect two machines via ttyS0 Here's what I did on the guest machines: A: Add to /etc/inittab: S0:2345:respawn:/sbin/mingetty ttyS0 Add to /etc/securetty: ttyS0 B: Try to ...
0
votes
1answer
308 views

Tell NetworkManager to ignore or not probe rfcomm0

I'm trying to remotely connect to a system via Bluetooth but am running into problems. Here's what I'm trying to do... On the remote device I'd like to have the following running: rfcomm -r watch 0 ...
-1
votes
1answer
260 views

Send input /dev/ttyUSB0 get the output [closed]

How can I send input to /dev/ttyUSB0 and get its output. I'm trying to do this in bash script. Any ideas?
1
vote
2answers
1k views

Remote SSH command via Java program

First of all my Linux knowledge is limited! I'm more a developer, who casually manages some servers :-) So, I'm operating on a farm of RHEL5/6 (mixed) servers and here is what I want to do: I have a ...
1
vote
1answer
128 views

How can I give tomcat sudo right [duplicate]

Possible Duplicate: No TTY present when running commands over SSH in here-document I installed tomcat7. It is nologin user tomcat7. That said, I need to give tomcat7 sudo rights to run ...
0
votes
0answers
219 views

SSH session opening on pts/5, pts/[0-4] not being in use. How do I use pts/0?

Connecting to a remote system through SSH, I always end up being connected to the pts/5 pseudo-terminal. No other session than mine is running (checked with w and ps fax), and restarting the SSH ...
1
vote
2answers
3k views

CentOS 5.8 - Can't login to tty1 as root after updates?

I've ran a yum update on my CentOS 5.8 box and now I am unable to log into the console as root. Basically what happens is I receive the login prompt, enter the correct username and password, and am ...
4
votes
1answer
413 views

pam_tty_audit and non privileged users

I'm working on a cents 6.3 box and am trying to log all commands executed from a bash shell and came across pam_tty_audit. I've added the appropriate line to my /etc/pam.d/system-auth file: session ...
2
votes
2answers
1k views

agetty is constantly terminated

I'm trying to set up serial console on CentOS 6.2. I've been able to get a login console, but if I try to enable grub and the kernel log showing on the serial port, grub keeps being terminated every ...
0
votes
1answer
386 views

SSH Interactive mode not working

I have a Debian based linux server running for a year or so, without any problems. A couple of days ago, ssh interactive mode stopped working for no reason. I mean, I can open an ssh connection just ...
4
votes
2answers
557 views

restrict ssh to run commands for some users

I have a machine where only some users should be allowed to login and execute commands over ssh, rest all users can ssh and run commands but should not login i.e no tty for other users. Can someone ...
5
votes
3answers
1k views

Can't send commands via SSH to Juniper firewalls

I have some Juniper SSG firewalls which I need to manage, and I'd like to be able to send commands to them from some monitoring scripts. I configured SSH access using public keys, and I'm able to ...
1
vote
2answers
2k views

sudo: sorry, you must have a tty to run sudo

I am trying to run this bash script as a cron job, but I am getting an error which says sudo: sorry, you must have a tty to run sudo. I am running this bash script in amazon EC2 linux instance. ...
2
votes
2answers
1k views

Running sudo commands in cloud-init script

I'm developing an automatic bootstrapper for some servers as we are using Amazon EC2 for our infrastructure. What I do is: run a Fabric script which connects to EC2 and initializes a new instance, ...
1
vote
1answer
994 views

How to add a serial COM port to Windows server 2008 using Linux + KVM + Qemu?

We are using Linux + KVM + Qemu with libvirt on our servers to manage virtual WIndows 2008 Servers. The Host is Ubuntu 11.04. The point is on one of our Windows server 2008 guest, we need to connect ...
3
votes
1answer
2k views

How to find out the currently active linux virtual terminal while connected via ssh?

The situation is as follows. I have a multiuser desktop machine with Debian Linux 6.0 and an ATI videocard with one monitor connected. I have root access to it. There can be several KDE sessions ...
1
vote
1answer
270 views

Is there a way to pam_tty_audit on Linux OpenVZ containers?

Looks like pam_tty_audit in Linux (http://www.slashzero.com/2009/11/shell-session-logging/) could have been a great way to help figure out "what happened!" when one gets rooted. I say "could have ...
3
votes
2answers
202 views

Can changing the tty improve compilation speed?

When I do large compilations (anywhere, but my question assumes Linux), many messages are often output to the screen. My question is, do these messages slow down the process? And if they do, does ...
0
votes
2answers
1k views

USB To Serial under OpenSuse 11.3

I have a LogiLink USB-To-Serial adapter. This has the PL2303 chip inside. When I insert the device: [26064.927083] usb 7-1: new full speed USB device using uhci_hcd and address 9 [26065.076090] usb ...
3
votes
3answers
1k views

List supported terminal types?

Is there a portable way to list supported terminal types on all *N*X systems? If not, what's the best way to get this list on Solaris?
3
votes
1answer
4k views

“debug1: read_passphrase: can't open /dev/tty: No such device or address” when trying to connect through SSH

I am trying to connect to my server using ssh user@server.com -vv I get debug1: read_passphrase: can't open /dev/tty: No such device or address error or just Permission denied, please try ...
0
votes
2answers
393 views

Serial Port ttyUSB0

I picked up a USB serial null modem cable, so that I can connect up to a headless linux box. As a quick test, I plugged the device into the usb null modem, and the other end I connected to a windows ...
1
vote
1answer
251 views

git hook and ssh on server

I have a git repo on a server. I would like to run a update hook on this when a push is done. I am unable to get git revlist or take any information from the user because i can't enable tty. I have ...
3
votes
2answers
3k views

Getty flooding syslog after kernel upgrade with “cannot open as standard input”

I just updated my kernel on an Ubuntu 9.10 system from 2.6.32.1 to 2.6.33.5, and everything seemed to go well, except now my system log is getting flooded with errors from getty: Jul 25 11:01:54 ...
29
votes
4answers
20k views

How can I launch a screen session with a command over ssh on a remote server from my desktop?

I want to be able to launch screen sessions on remote servers from a single ssh command on my desktop. However, screen seems to need a terminal, which is not available when running a command through ...