Questions tagged [tty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
483 views

Docker run failed: no space left on device "/dev/ptmx"

When I try to run any Docker container with an interactive terminal, I get the following error: $ docker run -it --rm my-container docker: Error response from daemon: failed to create shim task: OCI ...
Green绿色's user avatar
0 votes
1 answer
2k views

Difference between -t and -tt ssh

man ssh says: -t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. ...
secf00tprint's user avatar
1 vote
1 answer
333 views

ssh_config equivalent to ssh -t

Is there an equivalent to ssh -t in the ssh config? I couldn't find anything in the man pages. OpenSSH >= 8.9
secf00tprint's user avatar
1 vote
0 answers
186 views

systemd-nspawn can't auto login

I'm trying to config auto login for my nspawn container and I created /etc/systemd/system/[email protected]/autologin.conf and inside of that I wrote this config: [Service] ExecStart= ...
Jessica's user avatar
  • 11
2 votes
0 answers
90 views

Communicate between Windows and Linux subsystem using Virtual COM Port

I have a Windows program that connects to a COM port to send and receive data. The the other end is another program that is running on a remote Linux machine that also uses the COM port to communicate....
Jason O's user avatar
  • 159
1 vote
0 answers
160 views

How to assign a tty to a process?

I can configure a command which will be run without a tty (similar to a cronjob). The problem is that the binary to be run seems to require a terminal. Is there a way to run a process with a new tty ...
Julius's user avatar
  • 111
0 votes
0 answers
3k views

Display service output on console using systemctl

I have following service file - [Unit] Description=Open VPN Agent After=syslog.target After=network.target [Service] Type=forking TTYPath=/dev/pts/0 KillMode=process PIDFile=/opt/openVPN/pids/...
user784524's user avatar
0 votes
1 answer
129 views

When process writes to pseudoterminal slave, why it doesn't read what it wrote?

Here is my bash session: lrwx------ 1 stas stas 64 Mar 5 18:18 0 -> /dev/pts/0 lrwx------ 1 stas stas 64 Mar 5 18:18 1 -> /dev/pts/0 lrwx------ 1 stas stas 64 Mar 5 18:18 2 -> /dev/pts/0 ...
Stanislav Bashkyrtsev's user avatar
0 votes
0 answers
817 views

pam_tty_audit collect only TTY events

I'm trying to put together a TTY logging feature under Ubuntu 18.04 server and created /etc/pam.d/tty-audit with the following content: session required pam_tty_audit.so enable=* and added that ...
mc88's user avatar
  • 3
5 votes
1 answer
2k views

Need a replacement for "Snoopy"

Currently, we use Snoopy to monitor all commands issued by users on some externally accessible servers. We're in the process of updating everything to RHEL8 to ensure supportability and compliance, ...
Egyas's user avatar
  • 153
1 vote
0 answers
256 views

Script command on alpine

I want to preserve colors of docker exec command. The only way I found is to use script command like so docker exec <container_name> script -q -c "./spiral migrate:status" /dev/null The ...
ogbofjnr's user avatar
  • 183
0 votes
1 answer
347 views

Can many script instances write to tty (parallel)?

I have recently migrated my upstart scripts to systemd, unlike upstart, I don't see any output on the tty for services being started/stopped. To get that visual feedback, I added something like ...
Ani's user avatar
  • 32
0 votes
0 answers
354 views

Fix or explain tty issue and gpg2

I'm having an issue importing or generating gpg secret keys on ubuntu 18.04 with my main (sudo) non-root user. With root user I have no problems with gpg, but non-root and it's basically permission ...
jacobnollette's user avatar
1 vote
1 answer
966 views

How do I tell KVM to connect to a pfSense guest text terminal?

Intro I'm new to KVM. I'm preparing an instance of pfSense in KVM; running this gets me close but is not completely working: virt-install \ --name pfsense \ --os-variant freebsd11.2 \ --...
Reinderien's user avatar
1 vote
1 answer
479 views

Ubuntu Server 16.04 tty console is out of bounds

After booting there are leftovers of boot logs in the console. It is always a fixed number of lines. In console mode with the resolution of 640*480 it covers the whole screen leaving the console ...
St0rmC4st3r's user avatar
37 votes
3 answers
87k views

What does "the input device is not a TTY" exactly mean in "docker run" output?

This is a command that works: $ echo 'hi there' | docker run -i ubuntu cat hi there This is a command that responds with an error message: $ echo 'hi there' | docker run -it ubuntu cat the input ...
Mikhail Vasin's user avatar
-2 votes
1 answer
523 views

How can I chain a tty over multiple ssh hops [closed]

I have a target-server that is accessible by middle-server, and I want a terminal from my localhost to target-server, through middle-server. No need to open a port in my localhost.
fkrahe's user avatar
  • 1
3 votes
2 answers
4k views

Unable to run Expect " no more ptys. " as normal user

I have an LXC container with CentOS 7.4 running. On running expect from Normal user I am getting the below error. user@server ~> expect -c "spawn ls" spawn ls The system has no more ptys. Ask ...
nirmalraj17's user avatar
0 votes
1 answer
91 views

ssh -N steals keystrokes

When I run an ssh session purely for tunnelling purposes, I start it like this: ssh -N -L 5432:localhost:5432 user@host & However, when I do so, about every second keystroke in the terminal ...
Tom's user avatar
  • 327
2 votes
2 answers
802 views

Using pseudo tty with ssh and control master results in warning

I am setting up the following for some of my users. Machine A, running OpenSSH_6.6.1p1, OpenSSL 1.0.1e-fips Machine B, running OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f Both servers are Linux,...
Davide's user avatar
  • 151
1 vote
2 answers
5k views

How to tunnel the serial port from a remote machine?

I'm trying to access a remote serial console (a tty port on a remote machine) as if it's on a local machine. This is necessary for a serial-port only application to work on my machine. The remote tty ...
crististm's user avatar
  • 141
0 votes
2 answers
371 views

Transfer binary files over /dev/pts

I am attempting to transfer a new Linux image, and corresponding files, between 2 boxes. Only my Controller has USB support containing my newly built kernel. I want to transfer the kernel from my ...
jiveturkey's user avatar
7 votes
2 answers
2k views

How to silently broadcast a warning from a cronjob via "wall"?

So I have this cronjob on an Ubuntu 16.04 machine that ends in if ... echo "warning" | wall 2>&1 > /dev/null fi that I use to warn all users about some action taking place. Although I ...
Pavel's user avatar
  • 1,048
0 votes
1 answer
1k views

cant access tty:job control turned off After dist-upgrade [closed]

i cannot boot my server anymore what is the problem plz help
Sina Miandashti's user avatar
-2 votes
4 answers
879 views

Connect two TTYs via TCP/IP

I have two computers running Debian and connected via Ethernet. They see each other. I need to connect two virtual terminals on this computer this way: anything I input in first terminal will be ...
michaeluskov's user avatar
2 votes
1 answer
3k views

rsync: connection unexpectedly closed - No tty present

I'm having issues trying to rsync files over from a build server to a web server. the command im running is rsync -e "ssh -i ${HOME}/.ssh/id_rsa" --rsync-path="sudo rsync" -avh --chown=nobody:webdev ...
James Kirkby's user avatar
1 vote
1 answer
1k views

SSH'ing with force pseudo-tty allocation doesn't print my MOTD

I know that -t option in ssh allocate pseudo-tty. I'm using -t to "jump" to different directory on login, something like this: ssh -t my-server "cd /path/to/my/directory; bash --login". Why if I log ...
sobi3ch's user avatar
  • 893
1 vote
1 answer
2k views

Cannot login to ssh - stdin: is not a tty

FIXED If you have seen this in the login screen of your server... stdin: is not a tty ...you know the trouble. Well. I've had the exact same problem on my root server. I tried several things to ...
Leon Kasko's user avatar
5 votes
2 answers
246 views

How to tell whether a serial connection is "established"?

We have a Debian-based embedded device. It runs an application that communicates with other embedded equipment via serial (RS-232, /dev/ttyS*). Usually, this works just fine. But of course, sometimes ...
Nils Toedtmann's user avatar
1 vote
1 answer
1k views

ssh command without tty hangs

I'm trying to execute a simple ssh remote command from my local machine to an AWS instance, by running: ssh -i /my/key.pem ec2-user@<myhost> 'ls -l' When I do this, the command returns with ...
Jeff Storey's user avatar
0 votes
0 answers
744 views

echo message not coming on terminal with systemd

I have systemd service, say xyzWarmup.service. Here is the service file [Unit] Description=Xyz agent. After=fooAfter.service Before=fooBefore1.service Before=fooBefore2.service [Service] # During ...
user3872776's user avatar
0 votes
2 answers
3k views

No login prompt on tty[1-6] on Ubuntu 12.04.05

After disabling X on startup, no login ttys are offered on the console. I don't see any login prompt in any of the tty[1-6], just a line saying "* Starting Automounter [OK]" I have all the ...
Sergio's user avatar
  • 1
1 vote
1 answer
5k views

Chroot on Ubuntu 14.04.2 using Jailkit - /dev/pts No such file or directory

For the past few days I've been trying to setup a chroot on my Ubuntu server but I've been running into an issue. I've tried several different methods of setting up a chroot on Ubuntu including just ...
Nadeko Sengoku's user avatar
2 votes
0 answers
678 views

Share serial port between linux containers

I have a requirement to share a single serial port between two or more linux containers. The LXCs are spawned by the host linux. I explored the option of socat, wherein the host will open a TCP ...
networknovice's user avatar
2 votes
2 answers
10k views

how to disable serial console after successful boot (systemd/grub2)

I enable the serial console during the boot process on centos7 which uses grub2 and systemd (instead of inittab) I would like to undo that serial input/output at the very end of the boot, after a ...
ck_'s user avatar
  • 459
0 votes
1 answer
694 views

PAM tty auditing on CentOS 6.4

I am trying to implement pam tty auditing using http://jaredrobinson.com/blog/linux-tty-auditing/ but it is not working for me. Can some one tell me that any thing else apart from "session required ...
haroon_aut's user avatar
0 votes
2 answers
205 views

Remote login terminal

I have an unusual request. I have a box - running Fedora 19 - that I'm using as a server. I have a crappy Atom netbook - also running Fedora - that isn't good for anything. I was wondering if there is ...
Chris's user avatar
  • 248
0 votes
3 answers
239 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 ...
Lorinc Nyitrai's user avatar
1 vote
4 answers
2k 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 ...
Ricky Robinson's user avatar
85 votes
5 answers
94k 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 ...
Chas. Owens's user avatar
  • 2,053
0 votes
0 answers
57 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 ...
feedc0de's user avatar
  • 269
1 vote
1 answer
899 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) ...
Marc Riera's user avatar
  • 1,657
5 votes
1 answer
940 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 ...
LittleBobbyTables's user avatar
0 votes
1 answer
1k 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 ...
n611x007's user avatar
  • 127
31 votes
3 answers
6k 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?
Pedro Montoto García's user avatar
2 votes
1 answer
799 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 ...
Amandasaurus's user avatar
  • 31.9k
0 votes
3 answers
1k 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 ...
barraba's user avatar
  • 35
1 vote
1 answer
52 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 ...
Carlos Campderrós's user avatar
0 votes
2 answers
917 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 ...
Tiffany Walker's user avatar
1 vote
1 answer
572 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 ...
gabriel's user avatar
  • 11