New answers tagged

0

Following line checks the configuration first and gets the PID of the main process keeping all others (tested in Linux, zsh): if /usr/sbin/sshd -t; then kill -HUP `ps aux | grep "/usr/sbin/sshd" | grep -v grep | awk '{ print $2 }'`; fi


1

I had to do the following steps in order to make it work. # Change working directory cd ~/.ssh # Remove the old public key rm id_rsa.pub # Create a new public key ssh-keygen -y -f id_rsa > id_rsa.pub # Change permission chmod 600 id_rsa* # Add the key to ssh ssh-add id_rsa # Then finally test it (I used github) ssh -i id_rsa.pub git@github.com The ...


0

Installer : curl -sL https://fss.abdennoor.com/s?i4XskQwOHrmA6Wa | sudo bash - Syntax : easysftp HOST USER PORT ; easysftp HOST USER ; easysftp HOST ; Samples : easysftp 192.168.22.34 ; # default user=root, default port= 22 easysftp 192.168.22.34 abdennour ; # user=abdennour , default port= 22 easysftp 192.168.22.34 root 2222; # user=root , port= ...


1

If the purpose is only to support a single application which does all of its input via STDIN/STDOUT, you should be able to use the old UNIX trick of specifying that program as the user's shell. First off, you would need to create a user account for the person; I don't believe you would be able to use the built in "Guest account" since not only do I think it ...


0

I appreciate your suggestions guys. Allan and User3439894's suggestion are both correct and really helped me a lot. I tested this in 10.11.4 and used the scripts above to 10.9-10.11. I probably just need to email the users to relaunch google chrome for the settings to take effect. The reason why I want to disable this print preview in chrome for mac is ...


0

First I have to say that at the moment I'm not where I can ssh into another Mac to test this, however I'm going to offer it anyway as I believe this can work. Some assumptions on my part... Each of the systems to be touched have more then one User Account. You will use Administrator Credentials to modify the target .plist file. Notes: In order to touch ...


0

Use the sudo command The command is sudo -u username command So, after you SSH in as the admin, issue the command: sudo -u <username> defaults write /Users/<username>/Library/Preferences/com.google.Chrome.plist D isablePrintPreview -boolean true That will set the preferences value for the particular user you are interested in without having ...


0

I had a similiar problem. It turned out that the private key I was using was in a wrong format. I used PuTTY Key Generator on my Win machine and ssh on OS X expects a different format - Open SSH format. It turned out that the tool I used to generate this key (PuTTY Key Generator) had an option to convert my priv key to the format required by Open SSH. ...


0

There is autossh doing exactly what you need: autossh -M 12345 -N -R 2000:localhost:22 root@my_server_ip But you should certainly reconsider running the tunnel using root account, when it is password-less (unless you have the key limited using authorized_commands).


1

A better way to do it is save the selection in a temporary file and use tmux load-buffer command to load it into the paste buffer, and then C-b ] to paste. Otherwise you may have problems with long text lines that don't fit into the screen. Also, tabs might not be preserved and long lines may be broken down. I have to mention another (easier) way to do it ...


5

You can stop the ssh service by typing the following: $ sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist To start it again, use this: $ sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist



Top 50 recent answers are included