0
votes
1answer
15 views

How to ssh into remote machine and create new user in bash script

I am writing a bash script and would like to ssh into a remote machine and execute the adduser command. This is not working, all that I get is the --help text for adduser when I run the code below. ...
0
votes
1answer
22 views

Binvox not working on a headless Linux server

I'm trying to run Binvox (http://www.cs.princeton.edu/~min/binvox/) via web server, on an Amazon EC2 server with Nvidia GRID K520 GPU and running Ubuntu 14.04. I'm using the system(binvox, $ret) ...
0
votes
2answers
74 views

SSH Server on Ubuntu not works

I wanted to start SSH server on Ubuntu 14.04 running on VirtualBox. I installed Openssh, sshd, etc., configured sshd_config to listen on ip, which I see in ifconfig and it not working. I'm starting ...
1
vote
1answer
135 views

Can use Password authentication with SFTP even though “PasswordAuthentication no” in /etc/ssh/sshd_config

I have enabled SSH-keys based authentication on the Ubuntu 14.04 server, disabled root login using SSH and can connect successfully using SSH-keys based authentication with my user account blahblah on ...
2
votes
0answers
63 views

A window asking me to enter my ssh passphrase is popping up randomly. Why?

I'm on Ubuntu 14.04. For a few weeks now a small window keeps popping up randomly, grabbing my keyboard and asking me to enter the passphrase for my ssh key. The Window's title says "OpenSSH", and it ...
1
vote
1answer
32 views

ajaxterm using proportional font

I have Ubuntu 14.04 LTS, Apache 2.4.7, Python 2.7.6 and Ajaxterm 0.10-12ubuntu1. Ajaxterm is proxied via Apache. Here's the apache.conf excerpt: # Suppresses the Via header ProxyVia Off # Do not ...
1
vote
1answer
147 views

ssh ubuntu to android : No route to host

I am trying to log into my android phone (running sshdroid), using my laptop (ubuntu 12.04). I am on a university sub-network (on wifi), and so is my phone. I tried the following command: ssh ...
2
votes
2answers
161 views

it takes too long to connect to ssh server

I've got two VMs with arch linux and debian (running under virtual box). Not long ago, it started to take a lot of time connecting to arch VM over ssh. The first time after a while, successive ...
2
votes
1answer
71 views

SSH tunnelling outgoing traffic shaping

I am using an OpenSSH server for a client app that uses the traffic forwarding, SSH tunnelling and some users are consuming an extraordinary amount of bandwidth. Is there a way to shape the traffic on ...
2
votes
0answers
40 views

Why VMware DHCP persists getting offline?

I am trying to set up a SSH server in my remote machine which is running Windows 7 on it currently. So first I set up a Oracle VirtualBox but it did not work for me properly. Then I decided to go with ...
1
vote
1answer
79 views

How to check for a folder inside a particular folder in shell script?

I am working on a shell script and python script as well. Python script is passing certain parameters to my shell script and then I am using those parameters in my shell script. Below is my shell ...
0
votes
2answers
30 views

ssh to a new user in ubuntu

I created an user in ubuntu and now I want to do ssh with that user. I'm able to do ssh but I'm not getting in the shell: myUserName@myMachineName:path$ I just get: $ And I don't see the path ...
0
votes
0answers
24 views

SSH into servers each with different subdomain over one IP [duplicate]

I have several Ubuntu VMs (bridged) behind a router that I want to access remotely. I've also got an nginx reverse proxy that handles the port 80 traffic like this: sub1.example.com -> server1 via ...
2
votes
4answers
520 views

What are SSH_TTY and SSH_CONNECTION?

What are the SSH_TTY and SSH_CONNECTION variables for? On my Ubuntu system both of them are blank; what values should they have?
-1
votes
1answer
95 views

Understanding interface forwarding with VPN

I have a server with static IP address that I rented (Debian on it), and I have a server with a server at home which I bought and setup as home server (with Ubuntu Server). What I would like to do ...
2
votes
1answer
165 views

Creating a linux user with limited privileges for ssh tunnelling

I am following this post to create ssh tunnel to mysql. The details description of my application scenario is given in my other SOQ. I exactly followed these steps to create a user: useradd -s ...
3
votes
3answers
297 views

How to parallelize the for loop while scp the files?

I am running my below shell script from machineA which is copying the files machineB and machineC into machineA. If the files are not there in machineB, then it should be there in machineC. The below ...
1
vote
2answers
160 views

ssh key doesn't work for one server but works for another [duplicate]

debug ssh works Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/vinatia/.ssh/id_rsa debug1: Server accepts key: ...
0
votes
0answers
602 views

OpenSSH hangs after login without showing login prompt

I ran across an issue with ssh after fresh Ubuntu 13.10 installation on Lenovo T420. I tried git pull (which failed) and this led me to more general ssh failing. After spending some 2-3 hrs of ...
3
votes
1answer
163 views

Installing openssh-server after Rescue Disk boot

I tried to help a friend with hard drive boot problems. I first asked her to make a rescue disk (Ubuntu 12.04.3), and boot from it. Then I asked her to open a console (Alt+F1) and use sudo to become ...
0
votes
1answer
286 views

SSH accesss between CentOS and Vmware installed Ubuntu

I am here to request the Linux lads about using the SSH type remote access between my CentOS (Host) and VMWare installed Ubuntu. I am not new to Linux but I am completely new with practical ...
0
votes
1answer
84 views

Cancel SSH (after using it to browse) without logging out?

I'm afraid I'm not an expert on Unix and its command line (I'm using a Mac), so do bear with me (possibly an extremely stupid or basic question). I've used the command ssh -D 8080 -f -C -q -N user@IP ...
1
vote
1answer
190 views

Session limit for OpenSSH server on Ubuntu Desktop 7.10

I need restrict session limit on my OpenSSH server only for one session (one connection). I use Ubuntu Desktop 7.10. Of course Version is old, but I need it for experimental purposes. I tried modify ...
1
vote
3answers
2k views

Set environment variable automatically upon SSH login (no root access)

The situation: I run Ubuntu 12.04 LTS on a virtual machine. I regularly have to connect to my account on a university server, I do this by opening up terminal and using ssh -Y username@server.com. ...
5
votes
2answers
387 views

Unable to login via ssh after several months [closed]

I have a Dell Poweredge running Ubuntu 13.04 in my office to serve up an interal web-app address system. It has been at least a 2 months possibly 3 since my last login. Everything is running great, ...
2
votes
2answers
246 views

Simulate x-screen?

I'm working in a koding terminal running ubuntu 13.04, and I'm trying to run an application that requires an x-screen (even to run in terminal mode). I am unable to connect with x11 forwarding, and ...
11
votes
5answers
7k views

rsync all files of remote machine over SSH without root user?

I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo the Ubuntu way. Would I ...
1
vote
1answer
300 views

Broadcast port to other computers after SSH reverse tunnelling

I have been reading on how to reverse tunnel and I am using this command: ssh -f -N -T -R25565:localhost:25565 dns.mindfulhacker.tk To forward my Minecraft server. My other server can connect to my ...
2
votes
0answers
277 views

Webmin alternative that installs & runs on the client machine & communicate via SSH

Are there any Webmin alternatives that don't consume server resources but instead install on client machine & communicate via SSH client. So effectively all the actions made on that GUI are ...
0
votes
3answers
1k views

How to download files from a remote Linux (Ubuntu) Server? [duplicate]

How can I download files from a remote Linux Ubuntu server? I have access to this server, but I don't know a convenient way to download a file from there using SSH (PuTTy), for example. Any ...
2
votes
2answers
836 views

Find out screen id

I want to start a program with SSH using PHP, which works fine, but now I want to kill the screen with PHP, but the only thing I know is the name of the screen. How do I find out the screen ID ...
2
votes
2answers
7k views

Restrict FTP user to a directory

Sorry if this is an obvious question, but I don't have a lot of knowledge about this sort of thing, and I've googled for hours, nothing worked. So on a Ubuntu 11.04 server, I want to restrict a user ...
2
votes
1answer
3k views

Unable to ssh into Ubuntu 12.04 LTS [could not resolve hostname (hostname): Name or service not known

I'm just starting with a clean install of Ubuntu Server 12.04. I've run: $ sudo apt-get update $ sudo apt-get upgrade I've added the following to /etc/hosts: 127.0.0.1 (hostname) The file ...
0
votes
0answers
1k views

Can't connect through ssh?

I'm running two OSes, one (Backtrack 5) as a guest in VirtualBox and the other (Ubuntu 13.04) as the host. Now when I connect to my host through ssh (host-only connection): $ ssh 198.168.*.* -vvv ...
2
votes
4answers
5k views

SSH not working from one specific computer

I can connect from every other computer on the LAN, as well as externally. It connects fine to other machines running SSHD. When trying ssh with verbosity, I get the following readout: $ ssh -vvv ...
3
votes
2answers
591 views

SSH tunnel through middleman server - how to connect in one step (using key pair)?

My question is basically how to turn my existing two steps into one step. I have a working SSH tunnel set up between two computers using a middleman server like this: ...
2
votes
3answers
336 views

denyhosts is blocking existing users from logging in from unknown (new) IP addresses

I have denyhosts set up and working on Ubuntu 12.04. It apparently works well, except it is too strict. I can log in from any IP address that I have added to hosts.allow in advance. My sshd_config ...
0
votes
2answers
2k views

SSH tunneling: connect_to localhost port 22: failed

I want to connect from my computer to a remote computer using a middle server(u port forwarding). I run this command on remote computer: ssh -R 9300:localhost:22 user@middleserver and this one on ...
9
votes
2answers
968 views

Can I unfreeze bash or vim when SSH session freezes from timeout? [duplicate]

When my SSH session times out, the whole terminal freezes. Is there any way to break out of that connection? CTRL+C doesn't cut it.
1
vote
2answers
275 views

SSH agent loses keys after logging out

I added my SSH key having typed ssh-add ~/.ssh/id_rsa and ssh-add -l printed my key. But after logging out and logging in again I see The agent has no identities. I've tried setting a very ...
0
votes
2answers
64 views

ssh with identical machines

I have two identical beaglebones that I'm working with. They have the same hostname and originally had the same IP, though I changed one to see if that made a difference. They're going to be deployed ...
0
votes
2answers
103 views

Transfering files using ssh

I've found the following command pretty convenient for transferring files to servers I have ssh access to: cat myfile.txt | ssh my.host.edu "cat > myfile.txt" Is there a similarly convenient ...
0
votes
1answer
183 views

emacs fonts from ssh not as good as locally installed

How can I have the same emacs fonts and antialiasing configuration that I have in my local Ubuntu 12.04 also working when I open an emacs session via ssh to a CentOS 5 system? EDIT: I didn't get an ...
0
votes
1answer
240 views

Copy modified files from one server to other

Scenario: 2 Servers (*.12 and *.13) CakePHP "application" on both of them. *.12 is "Production" Server *.13 is "Development" Server Now i want to copy all files modified the last 2 days from test ...
13
votes
2answers
2k views

(SSH) Is it dangerous to close terminal without “exit”?

This happened many times. While the SSH active, I'm so tired and just close the terminal without exit Is it dangerous to doing like that?
0
votes
2answers
789 views

access a command line via a web browser

2 questions: Question 1 My job blocks ssh which means that I cannot ssh to my home server. However, they do allow https out. Is there a package out there for ubuntu that will allow me to connect to ...
14
votes
1answer
1k views

How to prevent shutdown when an SSH user is logged in?

I'm administrating a networked environment and I had an interesting situation arise yesterday. When a host is required to shutdown by a regular user, it refuses to do so if other users are logged in ...
2
votes
1answer
602 views

SSH host key keeps changing

I am trying to set up a web service (using the Play Framework) on an Ubuntu machine on the network. However, I am experiencing intermittent failures connecting to it, not being able to connect to it ...
4
votes
2answers
574 views

disabling ssh session expiration

I am installed Ubuntu on Virtual Box, and use xshell (a remote terminal application) to ssh to ubuntu. when I hibernate computer during night, after powering it on, the session is expired and I should ...
0
votes
3answers
586 views

Unable to ssh out from my laptop

I'm unable to ssh from a particular machine, either from my Ubuntu 12.04 install or my Windows Vista install (using putty). I'm trying to ssh into a remote machine where I have an account, but I keep ...