how to send output of ssh to /dev/null
location: linuxexchange.com - date: August 13, 2012
I have a command that wants to connect remote server with ssh.My command is
"ssh -o PasswordAuthentication=no $REMOTE_HOST_IP > /dev/null 2>&1"
When this works the true message comes "Permission denied".It is the true message but i dont want to see message on console so i redirected it to /dev/null.But is still comes.What is the problem
I tried as you say and taking 2&1 before /dev/null but still it does not work.But it is strange that it works on my friends computer
SOLVED:Problem is that I assigned the command to a variable and the run it as $command.But when it is set between "" redirection does not work
Ubuntu 10.10 How to enable ssh root with public key ?
location: ubuntuforums.com - date: October 22, 2010
I'm scripting virtual machines and I need to ssh root ubuntu 10.10 machines.
Ubuntu 10.04 permits ssh root with rsa public key with just change PermitRootLogin as yes in /etc/sshd/sshd_config
Ubuntu 10.10 seems to have change security policies, PermitRootLogin is already set to yes by default, but does not permits ssh root login with rsa public key
How to enable ssh root with rsa public key on an ubuntu 10.10 machine ?
Thanks in advance,
how to install ssh server on my ubuntu 8.10?
location: ubuntuforums.com - date: November 24, 2008
I tried to connect from my laptop to my desktop using ssh command and it said connection refused, I think some kind of server is required to be running on the desktop machine, am i correct?
What should I install on the server to make it work?
How to start SSH daemon in Ubuntu?
location: linuxquestions.com - date: March 21, 2006
How do I start SSH server?
I have emigrated from Gentoo (Im still using it too by the way) and there I just have to start sshd. But there is not sshd program so my quesition is how I start a ssh dameon so I can connect to this computer.
I just have /etc/init.d/ssh
not sshd (as in Gentoo).
I have run
[SOLVED] Ubuntu 11.10 How to setup ssh host?
location: linuxquestions.com - date: January 2, 2012
I'm currently trying to allow my computer to be remotely accessed via ssh. The computer is running Ubuntu 11.10. I've used ssh on several occasions in the past, but I've only used the basic features and I've always been on the client side.
I've installed ssh and when try something like:
How to install SSH server on Ubuntu?
location: linuxquestions.com - date: February 15, 2010
I just installed Ubuntu 9.10 on a machine here. Tried to SSH to it and failed. Tried to "ssh localhost" from the machine itself and that failed. Did a quick google search and found out that an SSH server is not installed by default.
But how do I install it?
I tried the following, which failed:
how to configure SSH to allow or deny specify host(ip address).
- date: December 31, 2007
hi, /etc/ssh/sshd_config i just only know to configure allow user:
AllowUser user1 user2
AllowUser [email protected]
How to configure deny from both directive? is it DenyUser directive correct?
If i want only allow or deny Host(ip address), how to configure, what directive?
? is it correct?
How to secure ssh in Ubuntu and Slackware
location: linuxquestions.com - date: May 8, 2007
Hi, let me know if there are any problems, hope it helps someone.
This site has really helped me, Thanks one and all.
UPDATE- Re-written sshd section adding comments.
Installing and securing sshd
Install ssh openssh
# change or add these options
#This will disable ssh protocol 1, breaking compatibility with some clients and rendering version 1 options ineffective
#I have not included the v1 options here.
#Both of my clients support Protocol Version 2, we will disable version 1.
# Replace 10.0.90.23 with your ip address
# Run sudo ifconfig -a
# Replace 55222 with port number, one not in use up to 65535. This will help to stop automated attacks against ssh on port 22
# We can also specify -p on the command line which will override this and make sshd run on a specific port
#/usr/sbin/sshd -p 55229
#I am using IPv4 on
How to set SSH keys on SSH server
- date: January 5, 2011
I installed SSH server on my ubuntu-server last night, following this online Guide:
Then I tried to generate the public and private keys.
:~# ssh-keygen t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
I didn't know what to enter here.
How to chroot ssh users using Jailkit
location: ubuntuforums.com - date: September 1, 2006
After setting up my secure ftp server (vsftpd) I needed a solution to allow users to log in, without giving them access to the entire system.
This is my first "How To" so i hope it'll be able to help someone .
In order to set up the ssh enviroment, I used Jailkit. You can get it here.
After downloading it, compile and install it:
tar -zxvf jailkit-2.0.tar.gz
sudo make install
Setting The "Jail" Up
After you've installed it, it's time to set up the "root" directory (the directory to which the users will be jailed to).
sudo mkdir /jail
sudo chown root:root /jail
Creating the Proper Environment
The following lines will allow the logged in user to use whichever set of programs you won't to allow:
sudo jk_init -v /jail basicshell
sudo jk_init -v /jail editors
sudo jk_init -v /jail extendedshell
Page: 1 2 3 4 5 6 7 8 9 10