Difference between revisions of "RemoteCommand"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
  
[[RequestTTY]]
+
RequestTTY yes
 +
RemoteCommand [[screen -UDr]]
  
  [[screen -RD]]
+
  [[RequestTTY]]
  
 +
  [[RequestTTY]] yes
 +
  RemoteCommand [[sudo su -]]
  
 +
 +
=== Login change to root and move to an specific directory ===
 +
  RequestTTY yes
 +
  RemoteCommand sudo su - -c "cd /tmp && [[bash]]"
 +
 +
<code>[[screen -RD]]</code>
 +
 +
== See also ==
 +
* {{ssh_config}}
 
* {{OpenSSH}}
 
* {{OpenSSH}}
 +
 +
[[Category:SSH]]

Latest revision as of 12:22, 14 March 2023

OpenSSH 7.6 (Oct 2017)


RequestTTY yes
RemoteCommand screen -UDr
RequestTTY
 RequestTTY yes
 RemoteCommand sudo su -


Login change to root and move to an specific directory[edit]

 RequestTTY yes
 RemoteCommand sudo su - -c "cd /tmp && bash"

screen -RD

See also[edit]

Advertising: