Hot answers tagged

7

I think it's to make the CheckHostIP work. If this flag is set to “yes”, ssh(1) will additionally check the host IP address in the known_hosts file. This allows ssh to detect if a host key changed due to DNS spoofing. If the option is set to “no”, the check will not be executed. The default is “yes”. You get slightly better diagnostics in case of a ...


4

OK, i believe i understand the question now. host1 Let us assume that you have host1 to which you connect with ssh via putty, on this host you shall install screen or tmux (from the package manager, they shall be there). I suggest screen since it is a little easier for a beginner. Also, you need to be able to login to host2 from host1 therefore you need ...


3

DSA keys are no longer supported by default, and will be discontinued in a near future. It maybe that was backported to your version (I doubt it). At least consider this post as an advice not to use them. From OpenSSH 7.0 disables ssh-dss keys by default Starting with the 7.0 release of OpenSSH, support for ssh-dss keys has been disabled by default ...


2

The way I handle the same requirement is similar as what Mike wrote about Michael: ~/bin/sshmyvps #!/bin/bash if ! ssh-add -l|grep -q vpsaccess then ssh-add -t 2h ~/ssh-keys/vpsaccess.key fi ssh myuser@myserver.mydomain.net The main difference being that I don't look for just any loaded keys but only for a specific one and then leaving it valid for ...


1

So, thanks to http://unix.stackexchange.com/users/28235/n-st, the correct config is : Match Group www-user User *,!yorunokoe ChrootDirectory %h ForceCommand internal-sftp AllowTcpForwarding no PermitTunnel no X11Forwarding no That limit all users in www-user except user yorunokoe to sftp.


1

for i in `cat servers.txt` ; do ping -c1 $i 2>&1 | tee >> ping-output.txt; done This executes a ping for each line in the file (using i as the variable that stores the value and referencing the variable with $i) and redirects all output into the [output] file. The 2>&1 part captures the stdout (ping results) and the stderr (no ping because ...


1

Looks like you set up a some sort of proxy listening on TCP:3300 port and forwarding all the traffic to your remote Windows PC RDP (remote desktop) port. Then all traffic goes to TCP:3300 will be forwarded to remote Windows PC at RDP port, so you can connect to it with regular RDP client. You'll need to have existing network route to between Windows PC and ...


1

used ssh with -i option to add your key here. if you want to pass arg1,arg2 with .sh file. just pass it after .sh file use space to seperate it. ssh -i home/avr/new.pem ar@231.221.54.8 "/var/www/beta/betatolive.sh mmin 30"



Only top voted, non community-wiki answers of a minimum length are eligible