Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 116972

SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.

4
votes
In such case I usually use heredoc to feed a script to remote shell. Not usable when script requires user input from stdin, though. ssh ${UserName}@server <<EOF1 ls -la ssh ${UserName}@server <<EOF2 ls -la EOF2 ls -la EOF1 …
answered Aug 26 '15 by yaegashi
3
votes
and B respectively. If you want to allow other hosts to connect, add the bind_address part in -L / -R. Just adding a leading : would suffice: ssh -L :5000:IP_of_C:5000 -R :5001:127.0.0.1:5001 IP_of_B … with this set up A connects to 127.0.0.1:5000 and C connects IP_of_B:5001. If you prefer to use 127.0.0.1 on both A and C, you need to establish a (virtually) direct SSH connection between A and C …
answered Aug 29 '15 by yaegashi
16
votes
Have you set DISPLAY environment variable on the client? I'm not sure which shell you are using, but with Bourne shell derivative (like bash), please try: export DISPLAY=127.0.0.1:0 ssh -X marko@vm Or if you're using cmd.exe: set DISPLAY=127.0.0.1:0 ssh -X marko@vm …
answered Jun 11 '15 by yaegashi
0
votes
/calling/pass" gpg-agent --pinentry-program /usr/bin/pinentry-curses --daemon setsid ssh myserver Note that setsid of util-linux in recent distributions (Debian 8.0 or later, Ubuntu 14.10 or later) need … -w to wait for the subprocess termination, otherwise you will get confused with a ssh session running in the background. gpg-agent --pinentry-program /usr/bin/pinentry-curses --daemon setsid -w ssh myserver …
answered May 29 '15 by yaegashi
2
votes
I suspect there's no myip recorded in /root/.ssh/known_hosts. Please try once sudo ssh root@myip interactively before running that script. Alternatively, you can disable host key checking: #!/bin …
answered Jun 18 '15 by yaegashi
1
vote
That device looks much like net redirection in bash, for example /dev/tcp/server/22. On Ubuntu 15.04, I could ssh over such a device by putting the following lines in ~/.ssh/config, then running ssh
answered Jul 26 '15 by yaegashi
4
votes
That motd output is all generated by running scripts in /etc/update-motd.d/ on every login. The dynamic motd feature in Ubuntu is governed by pam_motd (see update-motd manpage for details), so you ne …
answered May 28 '15 by yaegashi
4
votes
Why doesn't that solution with ProxyCommand work for X11 forwarding? I think you can directly reach mum's computer with X11 forwarding using the following configuration. Host mum ProxyCommand ssh -q -W localhost:1993 login@vps0 ForwardX11 yes …
answered Aug 18 '15 by yaegashi
3
votes
autorestart=true It automatically switches to /dev/tty9 and launches screen running getty to show login prompt. From other ssh sessions you can run sudo screen -x to attach to this console sesion, then …
answered Jun 14 '15 by yaegashi