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

learn more… | top users | synonyms (1)

8
votes
2answers
29k 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
2k views

Rsync over SSH path with spaces does not work with quotes

I am able to successfully RSYNC over SSH as long as the paths do not have spaces in them. When the path does have spaces, it does not work. I have tried slashes, quotes, and double quotes. When I ...
8
votes
1answer
10k views

Disable password authentication in ssh

I followed the following guide: help.ubuntu.com/community/SSH/OpenSSH/Configuring But it is still possible to ssh into the machine by entering a password (tried on win with putty) Any advice?
8
votes
2answers
7k views

How can I configure dbus to allow ssh-user to suspend server?

I try to suspend my server using dbus and UPower. The server runs Ubuntu LucidLynx 64bit. While everything works fine if I am sitting directly at the machine, it won't work via ssh. If I connect to ...
8
votes
10answers
66k views

How to use sshpass?

I need to use sshpass to launch a remote command through SSH from a Java code. If I manually type in a console: ssh -p 22 user@ipaddress mplayer '/media/data/myFavouriteSong.mp3' works perfectly, ...
8
votes
3answers
6k views

SFTP GUI +SSH Key

Is there any application that allows connecting via SFTP using private keys rather than password? I know that I can do that via Nautilus, but I would prefer some standalone application.
8
votes
2answers
13k views

How do I prevent git from requiring sudo on every git command

I created a directory /var/www to store my web apps clone in. When I initially cloned the app from github it required me to use sudo and every time I do a git pull it's requiring sudo. I'm running ...
8
votes
2answers
12k 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 ...
8
votes
6answers
17k views

host is able to resolve a hostname, ssh isn't

I'm trying to connect from a 10.04 system to a 12.04 system via SSH. Strangely enough the rules in resolv.conf seem to take effect only selectively, which leaves me puzzled. Observe: [2] user@mach:~$ ...
8
votes
1answer
7k views

Can I SSH into a specific directory?

I SSH into a multitude of different servers every day and some of them have different filesystem structures for their websites. Each time I change server, I have to work out where I'm going to get to ...
8
votes
1answer
5k views

Is there a form to upload files to MEGA(mega.co.nz) from Ubuntu Server(SSH)?

I was wondering if someones knows how to install a client, like megatools, in Ubuntu Server(SSH) to upload and download files to MEGA(mega.co.nz). Thanks in advance, Joserex65.
8
votes
2answers
14k views

Samba: how can I access a share on a Virtualbox guest (in NAT mode)

My OS: Windows 8 Virtualbox guest: Ubuntu 12.10 server I configured apache server on vbox guest and mapped http, https, ssh port successfully into ubuntu server. It works nice without any problem. ...
8
votes
2answers
1k views

SSH Process not Killed on Remote Machine when the Remote System Unexpectedly Disconnects

I have a question to which I haven't been able to find an answer. I have two computers, both of which run Ubuntu 12.04. I keep one of my computers at home and use SSH to connect to it from the other ("...
8
votes
1answer
2k views

sshfs transform_symlinks is broken

I've been using the same fstab command for a while now: sshfs#user@host.be:/home/user /home/user/vps fuse user,port=22,uid=1000,gid=1000,allow_other,reconnect,transform_symlinks 0 0 And it used to ...
8
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.
8
votes
2answers
4k views

Do commands continue running after I close my ssh session?

For example, I ssh into a server and run a command say ... wget, then I close the terminial window. Do my download continue? Or does it depend on the app? If so how do I know?
8
votes
2answers
13k views

How to connect to existing X session without unlocking physical display?

I usually leave many programs running on my workstation and sometimes I need to use it remotely. So I need to connect to existing X session, while keeping physical display (workstation's monitor) ...
8
votes
2answers
7k 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 ...
8
votes
2answers
2k views

ssh key administration for many users, servers

My company has some remote Ubuntu servers. The access to these servers is controlled by ssh keys. Managing these keys is quite a pain, especially when an employee leaves or joins the company. Is ...
8
votes
2answers
3k views

How can one unlock a fully encrypted Ubuntu 11.10 system over SSH at boot?

In previous versions of Ubuntu, and current versions of Debian, you can unlock a fully encrypted system (using dmcrypt and LUKS) at boot time over SSH. It was as easy as: Installing the encrypted ...
8
votes
2answers
1k views

Nautilus freezes when connecting to SSH server [closed]

I have several nautilus bookmarks pointing to SSH servers, so that I can easily access them. Out of nowhere this doesn't work anymore. When I open a bookmark or enter ssh://user@server in the location ...
8
votes
4answers
4k views

Cannot SSH from outside LAN despite port forwarding seems fine

Running Ubuntu 12.04, I've set up the OpenSSH server. I can connect from within LAN, but not from outside. I am using the same sshd_config file as on my other Ubuntu 12.04 machines (that sit in a ...
8
votes
2answers
14k views

How to avoid typing ssh-add everytime

I read and followed some online documentation on how to set up a ssh-agent so that I don't need to type in password every time I ssh to a remote machine. However, with the help of ssh-agent, I still ...
8
votes
3answers
6k views

How do I import existing SSH keys into Seahorse? [closed]

Is there a way to import existing SSH keys to Seahorse?
8
votes
3answers
4k views

Ubuntu 14.10 server startup

I install just the OpenSSH server on hardware that was running 14.04 Server. Besides the pages of checks the startup goes through, I believe it should recognize scroll lock from an usb keyboard, but ...
8
votes
5answers
11k views

Why can't Ubuntu access my Raspberry Pi across LAN?

Okay, I recently got a Raspberry Pi, and I got it connected to my Wi-Fi - I enabled the SSH and installed Hiawatha, and I could access it just fine from my Desktop, which was running Puppy Linux at ...
8
votes
5answers
18k views

Unlock all private keys on Ubuntu, entering password only once at login

I login to Ubuntu 12.04 using a password. Later on, when I use my browser(Chrome), I'm asked for a password to unlock the keychain so that the browser can access my saved credentials for various ...
8
votes
2answers
299 views

/var/log suspicious entries

For fun I tailed /var/log/auth.log (tail auth.log) and there were many of the following: sshd[16225]: Received disconnect from 203.100.83.32: 11: Bye Bye [preauth] The ip appears to be from China.....
8
votes
2answers
3k views

How to start/configure pulseaudio remotely with ssh?

I have a remote machine to which I can ssh. On the remote machine there is a program that uses pulse audio to get input from a USB microphone attached to the remote machine. This setup works fine when ...
7
votes
5answers
337 views

Why is openssh-server needed to receive incoming ssh connections?

Why is it needed? can't I just give an address:port and just "connect"?
7
votes
2answers
8k views

connecting a SSH tunnel on reboot?

How can i reestablish a Tunnel if my localhost goes down? i have 2 machines, Remotehost and localhost, on my localhost im running autossh to keep the tunnel alive in case of network problems. ...
7
votes
3answers
1k views

How to restore ssh_config file in /etc/ssh [duplicate]

I accidentally deleted /etc/ssh/ssh_config file. I've tried purging and re-installing openssh-server and ssh but the file doesn't return. How would I restore this file?
7
votes
4answers
22k views

ssh -L (error: bind: Address already in use)

Pretty simple, I know that this has happened to me before. Couldn't find a good answer on AU. I was running an ssh session with ports bound: ssh -L 3000:<server_name>:22 I just lost my ...
7
votes
2answers
4k views

Sending keypresses to remote X session over SSH

So I'm sitting in our living room on an Ubuntu laptop working while also watching a TV that is controlled by an Ubuntu HTPC. I have an IR remote set up and can control everything I need to with it, 99%...
7
votes
3answers
6k views

Can I ssh into my account without invoking .profile?

I want to ssh into my account, but I don't want the current version of my .profile login script to be executed. Is there a way to log in without running .profile? (Disclaimer: I found a work-around ...
7
votes
2answers
68k views

How to fix Permission Denied (Public key) error?

While trying to communicate between my desktop Ubuntu 12.10 and Fedora 19 desktop, I am facing the error of Permission Denied (Public key). I am able to login through ssh from fedora to Ubuntu, but ...
7
votes
3answers
12k views

How to remove offending key in git when you try to push your chanes?

I've done tons of search and tested different solutions, but gain no success! When I want to push my codes, I receive the following error: Warning: the ECDSA host key for 'git.mywebsite.ir' ...
7
votes
6answers
3k views

How do I disable gnome-keyring ssh integration?

I don't want gnome-keyring to get in the way of my git commits, partially because it locks the entire screen while asking for a password, even on KDE (though I have now switched to GNOME). While I do ...
7
votes
2answers
11k views

gsettings not working over ssh [duplicate]

I'm trying to change Unity Launcher icons on a remote computer with command: gsettings set com.canonical.Unity.Launcher favorites ... and it works perfectly But when I do ssh 127.0.0.1 gsettings ...
7
votes
2answers
4k views

Why does gnome-terminal freeze when an SSH session gets disconnected?

This is a very simple problem. I use gnome-terminal to SSH to other machines every day. I do this on a laptop which I carry around the office, so I am constantly switching between wired and wireless ...
7
votes
1answer
8k 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
3answers
6k 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 ...
7
votes
4answers
2k views

byobu and ssh-agent

byobu cannot connect to ssh-agent socket well. actually I can make just one connection via ssh-agent but if I try to establish another ssh connection using the agent, it doesn't work. I've tried ...
7
votes
1answer
27k 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 ...
7
votes
2answers
596 views

Can I SSH into a computer using Landscape?

I have a couple of computers that I manage using Canonical Landscape. Both of them are behind routers and in different cities so I can't easily SSH into them using openssh. They're running Ubuntu 12....
7
votes
1answer
15k views

How do I start “Ubuntu classic desktop” (no effects) from the command line

I am able to run sessions over an ssh connection but I rather use the "Ubuntu classic desktop (no effects)" version on Ubuntu 11.04 instead of the new Unity since I don't have 3d support on the laptop ...
7
votes
1answer
2k views

Why can I not see my USB connected Android device over SSH?

I have a computer running Mythbuntu 11.04, and it has Banshee 2.0 installed on it. I also have an Android phone that I use as a music player. I want to get Banshee and Android talking to each other ...
7
votes
1answer
563 views

gedit top menu invisible when started from terminal and using x11-Forwarding

Given: I'm using export $(dbus-launch) in my /etc/bash.bashrc file as I'm normally running under a non-admin user and need to su - admin to do anything dangerous. Normal behaviour: Go to dash, open ...
7
votes
1answer
1k views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
7
votes
2answers
1k views

How to prevent Ubuntu Server sleep/hibernation

I'm running the latest Ubuntu Server (quite literally downloaded & installed yesterday) on a box under my desk. I've got trac installed and OpenSSH. Intermittently both become unavailable, as if ...