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

learn more… | top users | synonyms (1)

2
votes
1answer
11k views

Is it possible to “SSH” into my virtual machine remotely?

My home computer: Windows 7 laptop also running an Ubuntu virtual machine via VirtualBox with a bridged network connection (as opposed to NAT). My work computer: A Windows 7 computer. I want to SSH ...
2
votes
3answers
2k 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 ...
15
votes
4answers
7k views

Is there a GUI utility to mount remote filesystems over SSH?

Is there a GUI utility to mount remote filesystems over SSH (SSHFS)?
14
votes
1answer
16k views

Couldn't connect to accessibility bus

When using ssh with X11 forwarding, I am getting various errors and warnings when running gui applications. As an example, any time I am running gitg, I get the following warning: ** (gitg:15904): ...
13
votes
2answers
11k views

How can I reconnect to a ssh session after a broken pipe?

So I was running apt-get upgrade on a server when the router decided it had been too long since it last made me angry: It dropped all connection. Moral of the story is to use screen a lot when you're ...
9
votes
1answer
471 views

I can't type a “b” when I'm in the command line

Update I can't even paste a b. I am trying to upgrade to Ubuntu 15.04 but I need to delete some files in the /boot directory. When I cd /oot I can't type a b. So, I thought, I will list the files in ...
9
votes
7answers
8k views

“Remote host identification has changed” warning when connecting over SSH

I got this message today when trying to log into my server. What should I do? Whats going on? $ ssh 10.10.10.69 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST ...
8
votes
1answer
10k views

Bizarre SSH Problem - It won't even start

I recently got Ubuntu 12.04 Precise, got it up and running with some MediaWiki software, static IP on the box and router and was able to access the main page even from a cell phone. Everything seemed ...
7
votes
3answers
1k views

How do I inhibit suspend from the command line?

Is there a way to inhibit suspend/hibernate from the command line. I want to ssh into my home computer and not have it suspend while I'm working on it.
6
votes
2answers
16k views

Encrypting Files and folder through terminal

I am new to part of encryption on Ubuntu . Is there any way to encrypt files and folder with password from terminal ? without using truecrypt or cryptkeeper etc.
5
votes
2answers
19k views

Copy files from a server via ssh to dropbox.

I have a user in a linux server (Debian) with ssh access, and have some files on it. I need to copy the files to my Dropbox. but I donot want to copy to my Dropbox in my PC and Laptop, I want to first ...
5
votes
1answer
8k views

how to connect to a remote desktop behind a router?

Here's my setup: I have a laptop that I roam around everywhere with, and I have a desktop computer at home that is connected to the web using a router with NAT. My objective here is to create an SSH ...
5
votes
1answer
2k views

How do I get an ssh -X session to use the host's sound settings

I have a USB sound card on a host system which has all my music, and to which I have connected my living room speakers. I would like to use my laptop to ssh -X into that system and run my favorite ...
4
votes
1answer
4k views

Editing remote files via SSHFS mount very slow (Sublime Text)

I'm trying to nail down the best way to work on projects located on a remote server. I use Sublime Text and I've been experimenting with SSHFS on Ubuntu to mount the remote directory locally and then ...
4
votes
4answers
3k views

Invalid SSH key error in juju when using it with MAAS

This is the output of juju from a clean install with 2 nodes all running 12.04 juju bootstrap - finishes with no errors and allocates the machine to the user but still no joy after juju ...
4
votes
4answers
22k views

Paswordless Rsync Over SSH Without Key Authentication [Un-Safe]

I want to set up an RSync job that would connect through SSH. I have my computer ( backup@myhost ) and the remote host ( test@remhost ) and I need to backup the folder ~/something with all it's ...
4
votes
5answers
5k views

How do I suspend over ssh?

I guess this question is pretty much the same as How to configure dbus to allow ssh-user to suspend server?; except I wanted to formulate it better. Assume I have an Ubuntu server running nonstop, ...
3
votes
1answer
4k views

Is it possible to save ssh password in remmina?

I have remmina 0.9.99.1 (1.0.0) in ubuntu precise 12.04 Can I save the ssh password so that it won't prompt me again for it
3
votes
1answer
2k views

How to change what xdg-open does with ssh://user@ip liniks

xdg open has ignored my directives. I have found several threads regarding how to open ssh://user@ip links (these are in our monitoring software). I have run the following commands: gconftool-2 -s ...
1
vote
1answer
610 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, ...
1
vote
1answer
934 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
1answer
474 views

Public key authentication unsupported by web host. Method to avoid entering password?

Unfortunately, my web hosting plan does not allow public key authentication. Apparently, this method is available to VPS and dedicated server customers only. I've backed up my Ubuntu 11.10 machine ...
11
votes
2answers
19k views

How set the Message of the Day (MOTD) as Ubuntu Server?

I have this in my Ubuntu SSH Banner Message: Welcome to Ubuntu 13.10 (GNU/Linux 3.4.43+ armv7l) * Documentation: https://help.ubuntu.com/ No mail. Last login: Mon Dec 2 08:25:39 2013 I'd like ...
8
votes
2answers
28k views

SSH connection getting refused

I am new to linux and I am trying to establish a SSH connection with my friend's PC in the same LAN, but I am getting "ssh: connect to host 192.168.71.70 port 22: Connection refused". Both ways are ...
8
votes
3answers
5k views

How to open ssh://username@hostname link

I want to open link like "ssh://username@hostname" with ssh. I think xdg-open can help me(xdg-open ssh://username@hostname), but I don't know how. How can i do it?
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 ...
7
votes
1answer
787 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
2answers
4k 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 ...
4
votes
1answer
34k 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
16k 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 ...
4
votes
4answers
17k 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 ...
3
votes
2answers
828 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
1answer
565 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 ...
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 ...
2
votes
1answer
1k views

ssh: connect to host HOSTNAME port 22: Connection timed out

I have trouble connecting to a server with ssh from my Lubuntu 14.04 computer, although it can be done from other machines. I can't get to the address online either (others can). Am currently using a ...
2
votes
2answers
214 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
1k 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
397 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
4answers
7k 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 ...
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
4answers
2k views

Uninstalling ssh

ssh is installed in my system. ssh -V OpenSSH_6.6.1p1 Ubuntu-2ubuntu2, OpenSSL 1.0.1f 6 Jan 2014 But when I try to uninstall it completely using sudo apt-get purge openssh-server it says ...
1
vote
2answers
8k 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
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.
1
vote
3answers
8k 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
5answers
210 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
191 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 ...
0
votes
1answer
947 views

How to get response from ssh command using expect

currently I am using following code, #!/usr/bin/expect -- set timeout 60 set username [lindex $argv 0] set password [lindex $argv 1] set ip [lindex $argv 2] spawn ssh $username@$ip expect { ...
11
votes
3answers
7k views

ssh never ask for a password

Somehow my SSH never wants to ask me for a password. So I setup a VPS on some random server somewhere in the world and I want to connect to it with ssh. I can setup a key, but when I do this: ssh ...
7
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 ...