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

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 4 years ago. Improve this question 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 … Read more

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 printed in another terminal and vice versa. I read about socat util, but the problem is I probably won’t have enough … Read more

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 2>&1 and it shows: /usr/bin/openvt -c 8 /bin/bash What is openvt? It mentions you can login without a password. How does that work in terms of how do you connect to it? Answer … Read more

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 pam_tty_audit.so enable=*” entry in “/etc/pam.d/system-auth” is required to make it work on CentOS 6.4. To test, I have started a new session with machine. Execute … Read more

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 boot the xyz.sh script reads input from /dev/console. If the user # hits <ESC>, it will skip waiting for xyz and abc to startup. Type=oneshot StandardInput=tty StandardOutput=tty ExecStart=/usr/bin/xyz.sh start RemainAfterExit=True ExecStop=/usr/bin/xyz.sh stop [Install] WantedBy=multi-user.target Following … Read more

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 –chmod=Dg+s,ug+w –delete –exclude-from=deployment_rsync-excludes.txt ./ deploy-user@PROD01:/${my.application.web.root}/${bamboo.deploy.release}/ The CI agent throws this error sudo: no tty present and no askpass program specified rsync: connection unexpectedly closed (0 … Read more

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 to /etc/pamd.d/common-auth: @include tty-audit All I want is to have auditd collected only TTY type of events, but I’m unable to find the proper configuration. The following: ## … Read more

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/openvpnAgent.pid ExecStart=/opt/openVPN/openvpnAgent start ExecStop=/opt/openVPN/openvpnAgent stop SuccessExitStatus=143 StandardOutput=tty [Install] WantedBy=multi-user.target When I connect to SSH and run tty command, if output is “/dev/pts/0”, in that case only output is displayed on console. If “tty” command gets different value, then output … Read more