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
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
6answers
16k 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
6k 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
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
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
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
12k 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
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
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
10k 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
296 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
1answer
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
1answer
60k views

Can't SSH in as root

I'm using the default installation of openssh-server for my Ubuntu 14.04 server. I can connect through the console as root like normal, with my username and password. When I try to SSH with the same ...
7
votes
5answers
335 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
885 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
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
11k views

How to check “apt-get upgrade” status after losing ssh connection?

Usually I upgrade my Ubuntu installation through a ssh connection. Sometimes this ssh connection would be lost or I would accidentally close the terminal window. It is possible to check the upgrade ...
7
votes
2answers
66k 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
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
3answers
11k 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
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?
7
votes
3answers
4k views

Ubuntu 16.04 ssh: sign_and_send_pubkey: signing failed: agent refused operation

I just upgraded my Ubuntu System from 15.10 to 16.04 by completely wiping the Ubuntu 15 partition from my system. After installing Ubuntu 16.04 I recreated my ssh keys as I forgot to back them up, ...
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
3answers
9k 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 ...
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
2answers
589 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
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.
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
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 ...
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
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 ...
7
votes
1answer
986 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
979 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 ...
7
votes
1answer
928 views

Déjà Dup over SSH - where to enter my login credentials?

I'm trying to make a backup of my folder in my ubuntu 12.10. I'm using BackUp in system setting using ssh, it can go through preparation file to backup. but then failed. cannot have permission to ...
7
votes
2answers
56k views

How to solve: “Connect to host some_hostname port 22: Connection timed out”?

I have two Ubuntu machines. Both have openssh-client and openssh-server installed on them. ssh-ing from machine G (fresh Ubuntu 11.10 installation) to machine K works great. But ssh-ing from machine K ...
6
votes
8answers
5k views

Find out if there is a local user logged in when logging in over ssh

I need to run some calculations on a machine that I can only access remotely but also serves as a work station. There are many of them and I want to pick a "free" one. Free means in this case that no ...
6
votes
4answers
21k 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 ...