Keep running a script via ssh
ssh can use to run remote commands.
ssh can use to run remote commands.
I’ve noticed when I SSH into a remote machine over a slow link, SSH seems to “stick” after a relatively large amount of data is transferred.
I have SSH executing some commands in a script, like so:
Is there a way how you can check what auth method the user which just logged in to an account were using?
I’m using ssh as a SOCKS5 proxy, connecting to my personal server. When my system is suspended or I lose internet connection, the ssh will eventually time out, forcing me to manually reconnect. How can I configure my system to automatically reconnect as soon as an internet connection is established?
I want to SFTP to a remote computer that is behind NAT. I can’t modify the NAT router, so I have set up a reverse SSH tunnel using a middleman server.
I set up my ssh stuff with the help of this guide, and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that I’m still using the same home directory.
I am trying to auto mount a folder from my raspberry pi (/home/pi/server_folder), to a local folder (/home/my_name/raspberrypi). I can do this with sshfs (auto mount in fstab) when I set up a blank rsa key, but when I try to use an actual key, like 123, the raspberry pi filesystem wont mount. This is pretty obvious, since I have to supply the passphrase, but is there a way to have it ask for the passphrase when I first try to access /home/my_name/raspberrypi, or do something similar to that? Because if someone gets my laptop, they dont need to put a password or anything in to get access to my raspberry pi, if I leave the rsa key blank. I have looked into autofs, and autosshfs, but autosshfs won’t download, and autofs doesn’t explain how to mount with an actual rsa key (well, I haven’t found a guide on how to). I’m using arch Linux, latest version. Here is the fstab entry:
I have set up public key authentication with ssh, but what happens, is that when I first log in, it still asks for a password, any subsequent login (while keeping the first login alive), does not ask for a password. I am not aware of any settings that produce such a behavior. Anybody any ideas why I am prompted for a password the first time?
Apparently, if the same shell launches multiple ssh connections to the same server, they won’t return after executing the command they’re given but will hang (Stopped (tty input)) for ever. To illustrate: