SSH, otherwise known as "Secure Shell", is a method for securely connecting to a remote computer.
31
votes
6answers
22k views
How can I set up password-less SSH login?
I want to be able to login to a remote via ssh without having to enter the password all the time.
How do I set it up?
Is a different command required to execute a password-less session?
33
votes
2answers
10k views
How do I change my username?
Some time ago when I installed Ubuntu I chose a rather stupid username for my account that I do not want to use anymore.
How do I change this (including the name of my home directory) without ...
5
votes
2answers
8k views
Remote login with graphical display manager (GDM, LightDM)
Is it possible to remotely (via ssh) make a login to GDM?
I'll explain a situation in which I'd need this:
I'm on my laptop and connect to my desktop via ssh. I realize there are some updates ...
25
votes
7answers
6k views
How to harden an SSH server?
What measures can/should I take to make sure that security around my SSH server is absolutely impermeable?
This will be community wiki from the start, so lets see what people does to secure their ...
15
votes
2answers
11k views
How to create a restricted SSH user for port forwarding?
ændrük suggested a reverse connection for getting an easy SSH connection with someone else (for remote help). For that to work, an additional user is needed to accept the connection. This user needs ...
45
votes
9answers
25k views
How to keep processes running after ending ssh session?
Let's say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine?
28
votes
6answers
20k views
Easiest way to copy ssh keys to another machine?
I am lazy at home and use password authentication for my home machines. I am ready to move to key based authentication. There are many options on the web on how to do this, including catting then ...
9
votes
2answers
6k views
How do I route my internet through a SSH tunnel?
Old Q How do I setup an OpenVPN server without root privileges?
Is there a way to setup an OpenVPN server without root privileges? E.g. with configuration files in my home directory? If yes, how do I ...
12
votes
7answers
11k views
Where is “Connect to Server” for ssh connections in Unity?
Cannot find "connect to server" in 11.04, looks like unity doesn't have it. Is there other very similar way to connect to another Ubuntu computer via SSH? (not in terminal)
7
votes
10answers
2k views
Long wait time on login
When I log in on my server I get this:
No mail.
Last login: Fri Nov 5 14:22:45 2010...
then I must wait for 5 sec and then is ready...
wolfy@ubuntu-server:~$
Is this wait time normal or should ...
9
votes
3answers
820 views
How can I help someone (like granny) over SSH who is behind a NAT router?
For helping others quickly, SSH is very useful, especially combined with GNU Screen. It's common that users are behind a NAT router. Even if the user can configure the router, it takes some time to ...
3
votes
3answers
2k views
Why do I get this warning from Gnome keyring in Xubuntu?
I have installed xubuntu-desktop ontop of a stock Ubuntu installation.
When using ssh, or more specifically git, I always get this warning
WARNING: gnome-keyring:: couldn't connect to: ...
15
votes
2answers
11k views
Locale variables have no effect in remote shell (perl: warning: Setting locale failed.)
I have a fresh ubuntu 12.04 installation. When i connect to my remote server i got errors like this:
~$ ssh example.com sudo aptitude upgrade
...
Traceback (most recent call last):
File ...
26
votes
6answers
7k views
How to use SSH (ssh & rsync commands)?
How can I SSH with a remote server so I can browse files and edit them. I have a username and password to use.
24
votes
2answers
5k views
How do I keep track of failed SSH log-in attempts?
I'd like to see if somebody has been trying to log-in by brute-force into my Ubuntu 12.04 server over SSH. How can I see if such activities have been taking place?
10
votes
5answers
33k views
passwordless ssh not working
I've tried to setup a password-less ssh b/w A to B and B to A as well.
Generated the public and private key using ssh-keygen -trsa on both the machines.
Used the ssh-copy-id utility to copy the ...
8
votes
6answers
11k views
Can you set passwords in .ssh/config to allow automatic login?
I'm using ubuntu 11.10. I'm using ssh for connecting to many servers daily, so i put their parameters in .ssh/config file; like this :
Host Home
User netmoon
Port 22
HostName test.com
Is there a ...
7
votes
6answers
3k views
How can I audit users and access attempts to SSH on my server?
I've had a few security problems with a server of mine, a few SSH users have been setting up fires aka giving problems.
I would like to:
Track user logins and logouts
Track activity of these SSH, ...
6
votes
2answers
2k views
Key-based SSH login with Nautilus' “Connect to Server”
I tried loggin into an SSH server via Nautilus' "Connect to Server" feature by just leaving the password blank, but that didn't work.
How do I connect to my server using the key I have on my system?
...
6
votes
3answers
6k views
Sharing files in LAN through Samba or SSH
I searched through many forums and I am able to share files between two Ubuntu machine and Windows machine but I have these problems which I can't solve.
any help will be thankful
When I share files ...
6
votes
3answers
2k views
Is there a secure web-shell for my server?
Following the security principle of trust no one, I can't use a service like http://www.serfish.com/. Is there a free software program that I can install on my Ubuntu server to give me secure shell ...
5
votes
3answers
2k views
Log SSH activity
All, I have an Ubuntu host that accepts SSH connections. How can I log all commands that are run on a specific account that logs in via SSH?
Thanks
23
votes
8answers
4k views
What is the best way to set up a headless server?
I have a ubuntu development server at work. It is an old rack server that is located somewhere in the company's dungeon, where nobody ever goes :)The only way it can work is as a so-called headless ...
6
votes
5answers
4k views
How can I permanently save a password-protected SSH key?
I am using Awesome Window Manager
How can I permanently add private keys with password?
Inspired by the answer here I have added the private keys in ~/.ssh/config
Contents of ~/.ssh/config:
...
11
votes
1answer
2k views
How do I retrieve the public key from a SSH private key?
A SSH private key as generated by ssh-keygen contains a public key part. How do I retrieve this public key from the private key? I've lost my public key and need to put the contents of this public key ...
8
votes
1answer
12k views
Connecting to ubuntu server via ssh externally
I have recently installed ubuntu server (12.0.4) and intend to use it primarily as a file server. I am completely new to linux so this is a pretty big learning curve. Yesterday I was able to ...
8
votes
6answers
8k views
Is it possible to SSH through port 80?
I am behind a network firewall that doesn't let me ssh through the default port. Because of that, I can't push any bzr branches to my repository. I would like to know if it is possible to somehow ...
7
votes
1answer
4k views
How can I allow SSH password authentication from only certain IP addresses?
I'd like to allow SSH password authentication from only a certain subnet. I see the option to disallow it globally in /etc/ssh/sshd_config:
# Change to no to disable tunnelled clear text passwords
...
5
votes
1answer
2k views
how to set up a ubuntu server to be (securely) available from internet?
(apologize in advance, I'm a pro-windows newly converted to ubuntu... if my questions are obvious, please tell me).
I want to build a ubuntu server continuously connected to the internet. I own only ...
7
votes
5answers
3k views
How do I disable SSH from starting automatically?
After installing openssh-server, the server start every time I boot. If I want it to be manual what do I need to do?
In version 0.6.7+ of upstart I would add a "manual" stanza to the job file.
10.04 ...
6
votes
2answers
8k views
How do I configure a new Ubuntu installation to accept ssh connections?
I just installed Ubuntu 11.04 (in a VM). How do I set it up to allow me to ssh into it?
(Right now I get "ssh: connect to host x.x.x.x port 22: Operation timed out".)
4
votes
2answers
2k views
How to enable SSH server in recovery mode?
How to enable SSH server in Ubuntu 10.10 Desktop Edition recovery mode?
My display is not working (broken video card). So how can I do that "blindly"? :)
9
votes
3answers
2k views
How do I run a graphical application on a remote server when logged in through ssh?
I am trying to run gedit from an SSH terminal on Windows, connected to an Amazon EC2 instance running Ubuntu 12.04 Server and I am getting this error:
Cannot open display:
How do I fix it?
4
votes
1answer
126 views
How can I install Ubuntu on a device without a screen nor a keyboard?
This is tricky. I would like to install Ubuntu on a machine that is intended to work as server, and for some reason I do not have an option to connect a screen to it.
I expect this may be similar to ...
1
vote
6answers
1k views
How to open a remote python program from terminal by ssh?
I type ssh -X name@blah.edu and asks for a password, I type it in and get logged in.
name@blah.edu:~$ program.py
then nothing happens, when it should actually pop up. Why is this happening and ...
5
votes
1answer
3k views
How do I get Terminator to start up with my custom layout?
Terminator is very powerful at organizing several computers or servers due to the split window and group all function. But here's the deal: I created my own Layout and would appreciate it to load at ...
2
votes
1answer
99 views
Is it possible to use DD to obtain splited images from a hard-drive?
My piano teacher asked me to record one of his recitals with his iPod (3-4 generation, not so sure) and I did it. While trying to edit it, he accidentaly deleted it, I'm trying to recover.
After some ...
2
votes
2answers
973 views
Remote reboot over ssh does not restart [duplicate]
I would like to remotely reboot my Ubuntu 12.04 LTS server via ssh. I do sudo reboot and I loose connection and the server connection does not reappear. It does not ping.
When I go the the physical ...
1
vote
1answer
834 views
hpn-ssh on ubuntu server
What is the current status of hpn-ssh on ubuntu?
It is not in the default repositories, as far as I can tell, but does anybody knows if there are any plans to add it (or decisions not to add it)?
13
votes
2answers
17k views
How can I chroot sftp-only SSH users into their homes?
I want to give some people access to my server but I want to limit their users to their home directories. I will bind-mount in any files I want them to be able to see.
I've created a user called bob ...
8
votes
3answers
3k views
Why won't ssh-agent save my unencrypted key for later use?
Every time I SSH into another server from our headless Ubuntu server I am asked for the password to my key file. Even if I have previously connected to the server.
Do you have any idea why this ...
17
votes
10answers
118k views
How to solve 'Connection refused' errors in SSH connection?
I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty.
The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error ...
20
votes
3answers
11k views
Is it possible to remove a particular host key from SSH's known_hosts file?
I usually end up deleting the entire known_hosts file, which I have no problems for. But just out of curiosity, Is it possible to remove just a single entry? I opened the known_hosts file, and other ...
9
votes
3answers
7k views
How do I edit the ssh motd?
I would like to add some fields to the ssh MOTD.
MOTD today:
Linux toker 2.6.31-22-generic-pae #69-Ubuntu SMP Wed Nov 24 09:04:58 UTC 2010 i686
To access official Ubuntu documentation, please ...
23
votes
2answers
11k views
Difference between `ssh -Y` and `ssh -X`
What is the difference between ssh -Y and ssh -X? As far as I have understood it, it has something to do with security, but I did not grasp the difference and when to use which.
6
votes
2answers
15k views
How to start a a GUI software on a remote Linux PC via SSH
Sometimes I need to start XMBC media player or other GUI software a one of my PC (small Xubuntu PC used as a media center).
Usually I do this starting a X11vnc server on the remote PC via SSH and ...
4
votes
2answers
197 views
My computer stops seeing the other computers on my network
I'm running Ubuntu 11.04.
Sometimes my computer stops seeing the names of the other computers on my network.
So I can no longer log into another computer by typing the hosting name
e.g. ssh ...
3
votes
2answers
524 views
Precautions during SSH [duplicate]
Possible Duplicate:
How can I audit users and access attempts to SSH on my server?
I recently had to give away my Ubuntu 12.10 root password to one of my friends so that he could SSH into ...
2
votes
2answers
560 views
After restart, how can I ssh into my system?
I have restarted my system remotely, but now when I try to ssh, I get the message
ssh: connect to host desktop.hostname port 22: Connection timed out
And when I try to ping it:
PING ...
11
votes
1answer
1k views
disable shutdown/suspend if there is other user logged in via ssh
I remember that in versions of ubuntu around 9.04 was possible to disable user to shutdown ( and maybe suspend too ) system if there was other user logged in.Something like policykit or similar.
Is ...

