0
votes
1answer
13 views

Unable to get into server via putty WHM and cpanel locked

I have a Linux 6.2 vps with a cpanel. I think possibly that i have been the subject of a brute force attack that has locked me out. I am trying to access my root server via putty but cannot do this ...
1
vote
1answer
13 views

Can't connect to SSH with new user

I created a new user, test. I have done the following to the account: I've given test sudo permission I've added test to AllowUsers in nano /etc/ssh/sshd_config I've generated a new SSH key pair, ...
0
votes
1answer
15 views

Different login hosts for each login on cluster

I have just obtained an account on a new cluster. It is running RHEL 6. I logged simultaneously from a couple of different terminal windows via SSH. What I noticed was that each login resulted in a ...
0
votes
1answer
9 views

unable to use ssh-1 despite protocol being 2,1 in sshd_config file

When I do telnet localhost 22 I get SSH-2.0-OpenSSH_6.6p1 Ubuntu-2ubuntu1 back. Since my sshd_config file has Protocol 2,1 in it (vs Protocol 2) shouldn't I be getting SSH-1.99-OpenSSH-6.6p1 ...
1
vote
0answers
29 views

ssh connection sporadically hangs

Whenever I ssh to elsewhere, the connection is fine for 1-10 minutes, then hangs: no error messages, just stops accepting input. I can exit (CR-~-.) but that's it. I can't find anything suspicious ...
1
vote
1answer
16 views

Setting up remote git repo that is on an encrypted drive?

I would like to set a remote git repo that I will be pushing to regulary, which is easy to do. But I want to set up this remote repo to be on a LUKS (Linux Unified Key Setup) formatted drive (via ...
0
votes
1answer
13 views

Passwordless linux account converted to Chroot jailed sftp now requires password?

I created a user and did an RSA key exchange for a passwordless connection. This worked. I also created a chroot jailed sftp only user. This also worked. I then created a third user. I set up the ...
0
votes
0answers
14 views

ssh sessions becoming unresponsive, server still shows user logged in

I have been having this problem with several servers that I manage. I log in via SSH and leave my terminal window open for an hour or so while working on something else. When I bring the terminal ...
1
vote
3answers
67 views

How do I properly SSH into a server behind a NAT while maintaining the tightest possible security?

I have a VPC in Amazon AWS. There's a NAT Server running in a Public Subnet that connects to an Internet Gateway. I have a bunch of servers running in various private subnets within the VPC. I'd like ...
1
vote
1answer
25 views

OpenSSH server refuses to accept key authentication unless logged into server locally

My server is running Ubuntu-Server and ahs OpenSSH-Server installed on it. I set up the /etc/ssh/sshd_config file to accept and require rsa keys, it looks for keys in the 'AuthorizedKeys ...
1
vote
2answers
33 views

What could 'Roaming not allowed by server' of ssh client mean?

I'm failing to connect to an SSH server instance and the verbose output contains debug1: Roaming not allowed by server. The following predictable and there avoidable problems arise: Roaming means to ...
0
votes
3answers
50 views

How to run remote ssh command with multiple commands using quotes?

I have tried many combinations, but none of those have worked, and now my ideas have run out. So my intension is to get time from scheduled at-job, and make another AT-job half an hour before it. And ...
0
votes
0answers
26 views

Setting up a preferred network interface in linux

I need to set up the network interfaces of a linux box running Ubuntu Server. The box will be deployed in an industrial vehicle and will operate headless (i.e. no monitor, no keyboard/mouse). The ...
1
vote
0answers
37 views

Play sound *on* remote machine via ssh on Ubuntu / Linux

I want to play sound on a remote machine via SSH, without X11 involvement. Basically, after logging in via ssh, a command line like mpg123 test.mp3 should play the test.mp3 on this remote ...
0
votes
0answers
12 views

Authentication lag with multiple open NX clients

I have a freenx system setup on a 12.04 Workstation which is experiencing intermittent connection and authentication issues. From what I can tell, it seems as if multiple NX connections cause the ...
-1
votes
1answer
13 views

How send tmux prefixer to remote server using iterm2

This is my first time using tmux and I have a problem. I have a remote server that I am connecting to it using ssh(using iterm2). Since opened, when I try to send commands like ctrl+b+c command+b+c ...
-1
votes
0answers
27 views

Rsync resume with Expect script after Broken pipe on remote server

I am trying to resume the RYSNC automatically with the expect script, but I keep getting error as I am not able to get into the expect script at all to enter the pwd My expect is installed in ...
0
votes
1answer
41 views

Access of services using Android SSH tunnel

My school has a really strict firewall, and I can bypass it using the SSH Tunnel app for Android connecting to my Linux VPS. They blocked the default SSH port 22, then I changed my SSH port to 80. It ...
0
votes
1answer
30 views

Accessing mysql behind firewall with ssh port forwarding

I have an architecture which looks like this: | - DMZ - | ________ | ________ | _______ | CLIENT | | | SERVER | | | MYSQL | |________| | |________| | |_______| ...
0
votes
1answer
36 views

Why my iptables configuration for port-knocking does not work?

I implemented the following iptables rules on my test server for a course. The firewall shuts down and I cannot access port 22. However, after knocking on the ports 1111, 2222 and 3333 in that order - ...
0
votes
1answer
20 views

Transferring files through SFTP

When I try to upload files to my server I am getting a permission denied error. I am able to see all the files through filezilla and even download them but when I try to upload it doesn't let me. I ...
1
vote
0answers
37 views

sshd_config settings not taking effect

I've been trying to configure SSH public key authentication for non-interactive login for sftp and for that to work, I know I need to have the following settings: RSAAuthentication yes ...
0
votes
0answers
39 views

Shell Script automatically exits from SSH section after switching of user (through pbrun command)

I have the below piece of code.. ssh some_user@server << EOF echo 'Successfully connected to the server' pbrun previlige -u user ls pwd id ...few more commands EOF if [ $? -eq 0 ] then echo ...
0
votes
1answer
42 views

ssh automation deploy user www-data or other user

We have our project on /var/www and it is owned by user www-data. I would like to create an automation for deploy so I do: Connect through SSH as user www-data Navigate to /var/www/somefolder ...
0
votes
1answer
39 views

ssh agent forwarding failing at 6 keys

My client is mac os x 10.9.5. I have a bastion host (linux) that I am ssh'ng into. I have agent forwarding working so I can ssh to the bastion host and then ssh into another machine without having ...
0
votes
1answer
24 views

socat as argument to ssh: “bash: socat: command not found”

If I ssh into an osx box from a linux box, issuing socat works fine. However, if I give the socat command as argument to ssh it fails. socat was installed in osx using brew. Any idea why this is ...
2
votes
2answers
58 views

what is `ssh-agent bin/bash` and why I have to `ssh-add` everytime

I have to run the following commands each time I restart: ssh-agent /bin/bash ssh-add ~/.ssh/key_rsa First question is why is /bin/bash necessary and what it is used for? Second, Is it ok I run ...
2
votes
1answer
24 views

Check if Logged In via ssh or su

Let's say I'm called to a workstation and I face a console and I want to know if the current user logged in via ssh or su. How can I check that?
0
votes
1answer
104 views

How to ssh from Linux client to OS X host without error message “ssh_exchange_identification: Connection closed by remote host”?

My LAN comprises a desktop computer running Linux (Debian Wheezy), a MacBook with OS X Mavericks, and a modem-router; ssh with Linux host and OS X client functions well - no problems connecting from ...
2
votes
2answers
109 views

Bash / exit status is 0, while expected is 255

Have a code I've used for the tests hola="cd /var && ssh localhost.error" $hola echo $? Executing just cd /var && ssh localhost.error will return code 255. But executing ...
1
vote
2answers
35 views

Is there any way to open a program on a specific tty?

I have a PC with no mouse or keyboard, but it is connected to a monitor. I was wondering if is it possible to open a program remotely (like via SSH) in a specific tty (like tty1) so I would able to ...
1
vote
2answers
64 views

Transfer file via SSH from server back to client

I am logged to remote server via ssh (linux) or via putty(windows). I want to copy file back to my origin machine from remote bash prompt (because of convenience). I know I can launch FileZilla or ...
0
votes
1answer
24 views

Append to file through SSH is failing with Invalid Argument

I'm trying to append to one of my inittab files through SSH from a different server. I've tried several attempts but seem to be failing. Any suggestions on how I can accomplish this would be greatly ...
0
votes
1answer
21 views

Pipe putty context to client clipboard?

Is there a command I can execute like cat <long file> | clipboard From within a putty session (connected to linux server) to my windows client? I know I can select an area in the putty ...
0
votes
2answers
38 views

What Linux distribution to a server on an old PC

I have an old PC with 2G RAM, 30G SATA HDD with a pentium II processor. I wonder what Linux distro to make my own server ? This server will be used for: gcc/g++ with vim/emacs I don't want any GUI ...
0
votes
0answers
28 views

Replace Linux with Windows via SSH

Is there a way to replace Linux with a Microsoft Server, only by using a shell? I know that there a "easy" ways to install Windows in a virtual maschine, and simply boot form that, but that is not ...
0
votes
3answers
105 views

Time Zone is getting different over ssh command & normal ssh

Whenever I run a date command over SSH the timezone shows different and if I login to server with SSH and if I run the same command it is completely different. Running command with SSH >ssh ...
0
votes
0answers
18 views

How to use 'Keychain Access.app' to manage ssh keys with a single ssh-agent?

I don't want to type the passphrase to decrypt my private ssh key every time I use it, but I do want to type it occasionally so I won't forget it. The first time I'm using ssh since restarting or ...
0
votes
0answers
25 views

How to go through this duplicity stalled connection?

I am trying to set up backups via duplicity. Here is the use case: ~$ duplicity --encrypt-key CA17A4FA --progress --ssh-options="-l 8192" ~/Documents/ ssh://my.distant.host/save/docs/Documents Local ...
0
votes
1answer
13 views

How to run a script on boot?

i have the following commands i want to run when the raspberry pi boots up, it is for my bitcoin minner to start cd /home/pi/cgminer-4.5.0 sudo ./cgminer -o http://xxxxxxxxxxx -u xxxxxxxx -p ...
0
votes
0answers
39 views

SSH and telnet fail strangely on an embedded linux system

The target machine is an embedded linux running BusyBox v1.00-rc2 (probably) on an ARM board. It's sealed and I can't open it, not that I would have the resources or knowledge to do anything even if I ...
0
votes
1answer
45 views

Using GNU screen to create a split screen environment from command line

Could someone please point me towards the syntax for using GNU screen from the command line. On a previous cluster, I managed to create a bash script that would create X number of tiled shells, each ...
0
votes
0answers
22 views

ssh-agent/ssh-add - how can I force confirmation by default?

I use ssh forwarding alot and I'm concerned about "agent hijacking", so, I like to use -c option when calling ssh-add, which enforces confirmation on every key usage. How can I turn the confirmations ...
1
vote
1answer
53 views

Debian SSH authorized_keys is being ignored

I'm using authorized_keys to restrict the usable commands for an user. The owner of the ~/.ssh and the file is the root and set to chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys This was working ...
0
votes
1answer
29 views

SSH connection with key, not working with rsync

After creating a key with no password, I can login with SSH to my remote host: $ ssh root@machine.local Welcome to Ubuntu 14.04.1... However when I try to use SSH to rsync to the same remote host: ...
1
vote
2answers
43 views

Run a script post login linux

I would like to run a script after a linux user logs in to do some additional security checks. The user should first login normally using their password, but then be checked with my script, and then ...
0
votes
1answer
42 views

Is there a way to copy text in htop?

Normally in putty you can just select text to copy it, but I can't seem to select text with my mouse in htop. Of course there's no right click menu to copy, ctrl+c doesn't work, and I didn't see any ...
0
votes
1answer
48 views

Why is [ssh,scp,rsync,etc] so slow, from a VM to another local machine on my gigabit local network?

I have a VM A running the latest archlinux with QEMU, KVM and a Virtio network card. It is a buildbot and it needs to drop the result on another machine B on the local network. The VM is started with ...
1
vote
1answer
19 views

why does OpenSSH 6.x client send a string upon connection but 5.x does not?

TL;DR: Why does the ssh client for OpenSSH 6.x send the string "OpenSSH_6.2p2" immediately when connecting, and OpenSSH 5.x client does not send anything? I am trying to get an ssh tunnel working ...
0
votes
2answers
58 views

CentOS. Set environment variable permanently

I used a following commmand in SSH terminal on my server: export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib and it works fine: my program finds all libraries at this point (if I launch it from my ...