SSH, otherwise known as "Secure Shell", is a method for securely connecting to a remote computer.

learn more… | top users | synonyms (1)

5
votes
2answers
2k views

No MOTD on Ubuntu 14.04…?

I recently did a fresh install of Ubuntu 14.04. When I SSH, there is no MOTD (and yes, I have the appropriate command set in sshd_config). I read a bunch of tutorials about setting up MOTD, but I ...
5
votes
1answer
6k views

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

Assume I have access to an SSH server that supports tunneling, and I am on a PC that is running *ubuntu, how do I set up a local SOCKS proxy that tunnels the traffic through that SSH server before ...
4
votes
1answer
421 views

Prevent machine from sleeping when SSH connections are on

I am trying to save power by switching desktops to suspend mode when they are inactive. But many desktops are also accessed via SSH by their owners. There is a wakeonlan solution deployed to enable ...
4
votes
1answer
29k views

Why do I get “connection refused” errors connecting to a server via SSH?

I've installed Ubuntu 12.04.1 LTS on it with the LAMP stack. I can ping it but when I try to connect to it the server can't be found. When I try to connect with WinSCP I get the error Network error: ...
4
votes
2answers
12k views

Installing libwww-perl on Ubuntu 12.04,SE

I have an Ubuntu 12.04 server edition which I ssh into. I am running Perl scripts on this server but it fails when I load 'use LWP::UserAgent;' with error message: Can't locate LWP/UserAgent.pm in ...
3
votes
2answers
281 views

Persistent SSH Connection

I use this command to make an SSH tunnel to a remote server. ssh -D localproxy:9999 -C tcx0@111.222.333.444 I also made a shell script using expect command to auto process entire process with also ...
3
votes
2answers
1k views

Error `could not load host key` when trying to recreate SSH host keys

I am trying to recreate the ssh-server host keys. I have at least two ways to do this: With dpkg-reconfigure dpkg-reconfigure openssh-server This works fine, but I cannot give the key length ...
3
votes
1answer
2k views

Keep the running processes alive when disconneting the remote connection

I have a bunch of processes on a server initiated by ssh from my own machine. It is now about three hours that my machine's Ubuntu has got hung and I do not see any other options but restart. Is there ...
3
votes
4answers
14k views

“Can't open display” even after access with xhost

I'm trying to run a graphical program remotely, without using ssh. I've set the display variable on the server (let's say server.com, Linux, not ubuntu, and no su rights) to point to my workstation ...
2
votes
2answers
112 views

How to grant access to a folder which resides in a folder owned by another group

Situation: Group A requires access to /path/to/dir/foo to upload files through ssh or ftp, but the directory in question: /path/to/dir/foo is owned by group B (if you'd like: /path is recursively ...
2
votes
1answer
792 views

Set user- or group-specific MOTD in SSH

I would like to disable or change the MOTD shown on SSH login on a per-group/per-user basis. This question on SuperUser has an answer stating that I can use Match blocks in sshd_config. However, man ...
2
votes
0answers
308 views

Using SFTP with SSH ForceCommand directive

I have set up an SSH server (call it group2.fqdn) with this ForceCommand directive: Match Group group1 ForceCommand ssh -t group1.fqdn Match Group="*,!local,!group2,!root" ForceCommand ...
2
votes
2answers
4k views

How to use rsync via ssh with rsa key passphrases?

How can I use rsync with passphrases? All googled "solutions" i found use passphrase-less keys which seems no real option. i am runnning 2 ubuntu servers 12.04.2 LTS.
2
votes
2answers
2k views

How do I mount a drive so that it is readable by me?

I'm working with over SSH with an external hard drive connected by USB. I know I can manually mount a drive with the following command: sudo mount /dev/sdc ~/dirToMountTo The problem is, if I ...
1
vote
1answer
317 views

Unable to ssh remote unlock encrypted ubuntu server 15.04 using dropbear/initramfs

So I'm trying to set up a brand new Ubuntu 15.04 headless server with full disk encryption and remote unlock capabilities. I've done this successfully on a raspberry pi running Raspbian-Wheezy, and ...
1
vote
2answers
5k views

How to ssh from windows to my ubuntu machine in the local network

When I'm trying to ssh to my local ubuntu server from the gitbash on my windows machine Im getting this error: $ ssh 192.168.1.11 ssh: connect to host 192.168.1.11 port 22: Bad file number Other ...
1
vote
3answers
7k views

ssh connection “permission denied” message

When I execute the command ssh localhost (in Ubuntu 10.10), it will display the error message "permission denied(public key)." What may be the problem? Is there any problem in sshd_config file in ...
0
votes
1answer
49 views

Started tightvncserver on Ubuntu, but viewer complains about missing .xsession file

I've never used VNC before, although I used X11 about 25 years ago. I'm trying to set up a VNC connection between my Windows laptop and a box I ssh to from an external gateway. From my Win7 laptop, ...
0
votes
5answers
138 views

quick-and-dirty file sharing on a LAN

I have a rather large file(s), which I'd like to share between two Linux boxes on the same network. I'm somewhat familiar with scp, but how do I configure it on the host? That is, how does the host ...
0
votes
2answers
139 views

Accessing a remote file via ssh on Ubuntu 12.04 [duplicate]

I have a text file on one of my computers that is running 12.04. I was planning to use ssh to allow for another computer to read this text file. The issue is that the system that I am working with is ...
8
votes
1answer
4k views

How to mount a remote (over SSH) directory to be available like a local directory (incl. in shell, not just in Gnome)? [duplicate]

I've got my files (mostly text/code, nothing of heavy like videos etc.) in a directory on a remote server which I can only access by means of SSH. Can I mount it on my laptop to use it seamlessly from ...
6
votes
2answers
6k views

Can I ssh (into a mobile device) via USB?

I have a tablet with a USB connection to a host computer. (Ideally the host is running Windows, but if absolutely necessary I could switch the host to be Ubuntu also.) I want to be able to SSH into ...
6
votes
1answer
3k views

how to backup/restore the host key in ssh server

I have a ssh server, and some clients have login it via key login. So the host identity of server has been stored in the known_host of clients. I want to reinstall the server, but I hope it never ...
5
votes
1answer
185 views

autossh -ND at Ubuntu boot

I have setup key-less login at a remote server. I use the remote server for tunneling my data. I want my local system to ssh into the remote server at boot time automatically. I tried the solutions ...
5
votes
2answers
756 views

Everytime i am trying to connect to my box using SSH, its failing not connecting

From any other PC doing SSH to my Ubuntu 11.10,is failing. My network setup: Telenet ISP (Belgium) > Fiber cable < > RJ45 cable straight > to Ubuntu PC Even the SSH is running: Other PC: ...
5
votes
1answer
3k views

How do I secure vnc/desktop sharing? [duplicate]

I have a bunch of laptops I need to set up for our support dept and I need to be able to access/monitor them at all times. The laptops run ubuntu 11.10 gnome shell 3.2 and all have the desktop sharing ...
5
votes
3answers
8k views

pgadmin3: Unable to initialize gtk, is DISPLAY set properly? [closed]

I'm having some trouble getting pgadmin3 to run on a remote server. I'm logging in to the server using SSH with the -X option. When I first installed pgadmin3, I was able to launch it using the ...
4
votes
1answer
10k views

Ubuntu - saying your security settings have blocked an application from running with an out-of-date version of java

I have this new problem since 2014 begin. I cant remotely login to this enterprise network for giving them support. Its keep showing this new error. How to fix it please? EDIT:
4
votes
0answers
1k views

Boot from USB, setup through ssh [duplicate]

I've got a new home server with no keyboard, monitor, etc., but with the ability to boot from USB. I want to install Ubuntu Server on it, but can't work out how. If possible, I want a disk image that ...
4
votes
4answers
4k views

How can I make ssh-copy-id use a port other than 22?

How can I make ssh-copy-id use a port other than 22? I tried it with -p but I get: ssh-copy-id -p XXX XXXX@XX.XX.XX.XX Bad port 'umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ...
4
votes
2answers
1k views

How do I approve specific computers to ssh into a machine with password authentication disabled?

The instructions in help.ubuntu.com/community/SSH/OpenSSH/Configuring recommend disabling password authentication so that "it will only be possible to connect from computers you have specifically ...
3
votes
2answers
577 views

Ubuntu 14.04 Nautilus “connect to server…” window changed

I'm having trouble because I want to connect to my EC2 server through my new installation of Ubuntu 14.04 and I just can't. I already downloaded the .pem key and added my server to the ~/.ssh/config ...
3
votes
1answer
14k views

ssh refusing connection with message “no hostkey alg”

My SSH connections worked well, but from last week SSH from my laptop to my board refusing connection. I can make a SSH connection from the board to laptop, but not vice-versa. I tried that with my ...
2
votes
1answer
103 views

Hadoop in Ubuntu : Unable to create Passwordless SSH

I am learning Hadoop and trying to create the passwordless SSH following the procedure in define in the Book : Hadoop: The Definitive guide Configuring SSH Pseudodistributed mode is just ...
2
votes
1answer
123 views

Messed up with my ssh_config file. How can I recover the original file?

I was setting up ssh on Ubuntu. I accidentally copied the contents of sshd_config in ssh_config file! Is there a place where I can find the original one? Fortunately I didn't touch the ssh_config. I ...
2
votes
1answer
342 views

Unable to write to /var/log/btmp

I recently had a bunch of entries in my btmp log [because of a boneheaded move on my part] I resolved the issue, but now I would like to clear that log, I copied it somewhere else for reference and ...
2
votes
1answer
191 views

Trying to understand my first server set up

I am trying to set up my first server and stack. I spent a week trying to do it on a virtual machine but could never get the ports to forward correctly so today I just dedicated the full machine. I ...
2
votes
2answers
4k views

Using authorized_keys with git

I have transfered my ssh key from my root to my user account by ssh-copy-id command so now I have these files in my .ssh folder user@user-php:~/.ssh$ ls authorized_keys config id_rsa id_rsa.pub ...
2
votes
1answer
210 views

Move window from display :0.0 to display :10.0?

I'm using Cygwin to login to my lubuntu box: ssh -y *user*@192.168.12.37 I can easily use byobu to redeem my cli session. Is there a way to move a running window from display :0.0 to my remote ...
2
votes
1answer
161 views

how do I use ssh with key access in 11.10

I've used ssh before and password access from my new asus k53by laptop with a fresh 11.10 install to dev server works fine. I wanted to set up key access for added security and ease of scripting and ...
1
vote
0answers
27 views

SSH denied after messing with fstab

Goal: repartition one big 5TB /home partion into separate partitions on a remote Ubuntu server. Approach: I took a backup of /home, then erased the partition in gparted and created new partitions, ...
1
vote
2answers
173 views

SSH Ubuntu Touch

I want to SSH my new Ubuntu phone and tried this instruction but it doesn't work. I get "error: device not found" from every single command.
1
vote
3answers
160 views

Multiple Users Private / Public Keys

I am currently undergoing a project of maintaining a server with certain simple services (mail, web) for a group of thirty users. I would like to use pub/private keys but I guess unsure of their use. ...
1
vote
1answer
246 views

login to “front end gui” from ssh (together with Synergy)

So, I have 3PC on my desk, all running ubuntu 14.04 64bit. and all running the latest version of Synergy, so that I only use one keyoard and one mouse to control 3 PCs and 4 monitors. this works ...
1
vote
0answers
174 views

Moved a VBox guest to a physical host; network is up, but OpenSSH is not. Why?

I've come a cross an issue I really don't understand. I wanted to install Ubuntu Server on a headless box I have. The desktop sits right next to it, and adding and removing disks are very easy, so I ...
1
vote
1answer
315 views

Remote backup with a file by file encryption?

I want to do remote backups over Internet (so limited bandwidth) from an Ubuntu server to a iMac machine (POSIX compliant) supporting both ssh and rsync. I do have sudo rights on both machines. The ...
1
vote
2answers
710 views

How to forward local port 80 to another machine?

I want to port 127:0.0.1:80 to the other machine via SSH, how can I do that? I tried adding -R 8000:localhost:80, but it doesn't work. By the way, PHP is also installed on localhost, maybe that's why? ...
1
vote
1answer
10k views

Configure OpenSSH server and router to accept SSH connection over internet?

I want to access my PC from anywhere. I'm able to connect to the PC within the same LAN using the local IP. However, outside the local network I see a connection time out error. How can I configure ...
1
vote
4answers
5k views

No prompt after successful ssh login

After a successful login to my VPS the command prompt doesn't get displayed. I've ran ssh with -vvv and sshd with debug output, absolutely nothing is amiss. The VPS is Ubuntu 11.04, the client Ubuntu ...
1
vote
1answer
3k views

ssh not accepting public key

I recently installed ubuntu 10.04 and trying to connect to remote servers with SSH, which is failing to connect with public key. I created the DSA keys, then did a ssh-copy-id to the remote server ...