SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

0
votes
1answer
54 views

I am accessing remote machine in linux using Bash scripting

I am accessing a remote machine using the ssh command and a pem file. My code is as follows: #!/bin/bash ssh -i rijo.pem ubuntu@90.45.74.51 <<EOF sudo -s var=`cat ...
1
vote
1answer
29 views

SSH not giving indication that the public key is being used for login

I have a public key to log on to my server. This key is password protected. However, when I log in to my server, there's no indication that the key is ever used. I just log in with my password as ...
0
votes
0answers
46 views

Can I “hijack” a UNIX shell from another login? [duplicate]

Let's say I'm starting a job in a Unix terminal on a machine (a Mac if it matters), and this process does a lot of things and keeps printing output to the terminal. Then I go to another machine and ...
0
votes
1answer
25 views

Directory .ssh problem [closed]

I have been trying to Create a Directory .ssh in /home/user/.ssh and I keep getting error file directory already exist. I have not created .ssh directory. I have been using mkdir /home/user/.ssh How ...
0
votes
1answer
55 views

Connection lost to VPS While using iptables by default policy as DROP for INPUT, OUTPUT, FORWARD

I'am using iptables in many server's but now stuck with this issue while using default Policy as DROP. Here is my rules which i have used in VPS, Tried many time's everything seems fine but VPS ...
1
vote
1answer
120 views

awk in ssh in su in a command substitution

I am creating a script that will ssh to a host and print all the user accounts and when they will expire. On a host I can run awk -F':' '{ print $1}' /etc/passwd and it will give me a list of all ...
2
votes
6answers
160 views

What are the Implications of Passwordless SSH

If UNIX users reach servers via SSH, and we only want to allow pubkey logins, are there any other items that need to be added to this list, that I should be concerned with? Allow pubkey login in ...
3
votes
1answer
285 views

Changed SSH port without allowing it through firewall, locked out now - what to do?

I have a VPS where I changed the SSH port from the default 22. Unfortunately I forgot to allow the new port through the firewall. I don't have physical access to the server, and my host does not seem ...
3
votes
0answers
140 views

Debugging ssh: slow, but fast with -t [closed]

Just today my server has started being slow at ssh login when a terminal is not requested. The delay seems to be random between 0 and 40 seconds and is reproducible every time. The surprising part is ...
0
votes
1answer
62 views

block from SSH and FTP

yesterday i was upload some images using filezilla to my VPS , and today when i tried to login into my VPS i got connection time out , same thing when i tried to access using FTP. but i can acces ...
1
vote
0answers
104 views

Why does having cron run a remote command over ssh on a Cisco router get interrupted?

I have been tasked with making sure that if a particular server at work dies, we know about it right away. Because I'm not there (no one is really), I have written a script to run on my home router ...
5
votes
1answer
66 views

HURD: Why is remote process not killed?

On most UNIX systems this will not leave a process running: ssh example.net sleep 1000 <<CTRL-C>> I have tested this behaviour on aix centos debian dragonfly freebsd hpux irix mandriva ...
3
votes
1answer
65 views

What is the difference between letting nohup append to 'nohup.out' and explicitly redirecting it to a file?

Consider the following scenario: tail.sh: #!/bin/bash tail -f test.txt invoke.sh: #!/bin/bash nohup ./tail.sh & invoke_explicitredirect.sh: #!/bin/bash nohup ./tail.sh > out.log & ...
2
votes
1answer
62 views

Concatenate and pass as parameter, bash

Need some help with removing default gateway. For example, there is an IP 192.168.4.15 with default gateway 192.168.4.14. I connect to WLAN with gw 10.0.0.1 and after that I would like do remove ...
3
votes
0answers
51 views

Why is my SSH authentication socket different from the man pages?

These two entries of man ssh-agent describe the SSH authentication socket: $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> UNIX-domain sockets used to contain the connection to the authentication ...
1
vote
0answers
26 views

Mosh and terminal multiplexing

Reading this Q&A on the site: Can I re-attach to a mosh session? made me wonder about the use cases for mosh. Say I start tmux on my local client, and then mosh to a remote host from within ...
1
vote
1answer
29 views

Mosh to a specific remote shell

With ssh, I can do something like the following: ssh user@host -t /path/to/some/shell How can I automatically launch a shell on the server with mosh? I have tried with mosh user@host -ssh ...
0
votes
1answer
80 views

Sudo command not working on Intel Galileo Gen 1

I have an Intel Galileo Gen 1 Arduino board and I am using it over SSH with Ethernet. When I try to use the sudo commands the bash terminal reports this, a missing command! I am using the bigger Linux ...
1
vote
1answer
54 views

How to disable GUI for password promt in Gnome

I moved from Xubuntu to Debian and copied id_rsa and id_rsa.pub to ./ssh/ I use a passphrase protected certificate to log in to a remote server. My passphrase contains arrows. Somethin like "Mike" ...
-1
votes
1answer
49 views

Does a Linux server use swap space of an SSH client? [closed]

I currently am SSHing into a Linux server via my mac's terminal program. Afterwards, I run whatever simulations and calculations I need to do. However, I noticed that after I log in, it says on the ...
1
vote
1answer
112 views

Can't change gnome-terminal tab's title from within ssh session on remote debian 8 machine

When I connect to a debian 8 server I can't change gnome-terminal tab's title, see for yourself: $ ssh deb6-server $ echo -en '\e]0;test\a' # title changes $ echo $TERM xterm-256color $ cat ...
0
votes
1answer
42 views

Ugly bash function to send commands and “say” anything in screen over ssh. Is there a better way?

I’m working on a function this works but it is ugly. One thing that could be changed is being able to know the name of the screen. Using screen -dms minecraft java ….jar now starts a screen session ...
6
votes
1answer
140 views

Cannot run cryptsetup throught SSH?

I'm trying to open a LUKS drive through SSH directly. ssh root@XX "cryptsetup luksOpen /dev/sdb3 secure But, no password prompt and it stuck. debug1: Sending command: cryptsetup luksOpen /dev/sdb3 ...
0
votes
0answers
74 views

Establish reverse ssh tunnel at OS startup / network connection up

I'm trying to setup a reverse SSH tunnel using a middle-man, due to firewall restrictions. I took the following steps: from ssh server do reverse tunnel: ssh -R 8080:localhost:22 ...
1
vote
1answer
254 views

Remote ssh command not sending echo variable from a ksh script on AIX

I'm need to get the value of a variable from a remote host in a script using SSH and have to source an environment file first that does a shift at the end of its run. The command works locally and I ...
0
votes
0answers
30 views

Is there a large performance difference between find and find2perl

Is there a performance difference between find and find2perl? I work for a hosting company and I was told that our admins prefer us to use find2perl over find. Supposedly this is because find is ...
1
vote
1answer
40 views

How does 'ssh-copy-id' work under the hood?

What does the program ssh-copy-id actually do under the hood? Can the steps be explained as if to a child with a good understanding of computer science? Does it use protocols already existing in the ...
6
votes
5answers
716 views

Use two different ip addresses per host in SSH

I have a server, named gamma, constantly up and running at work. Sometimes I connect to it from at home, in which case I use the public IP address 55.22.33.99. Sometimes, I connect to it when I'm at ...
2
votes
0answers
44 views

X forwarding from a mac to Linux fails

I have been having problems recently while trying to ssh into linux servers (Ubuntu 14.04) from my mac (OSX Yosemite 10.10). This used to work fine until my latest update, where I systematically get a ...
2
votes
1answer
62 views

What will happen if I export my $HOME variable upon login?

This is a follow up from this question: http://askubuntu.com/questions/563828/how-to-change-my-home-directory?noredirect=1#comment775654_563828 The summary is: running ubuntu 14.04 ssh'ing into it ...
0
votes
1answer
125 views

How can I use SSH to tunnel Minecraft clients to my MineOS server?

I have a MineOS Turnkey server running on my university's network and its locked behind their firewall. I have been able to connect to their Linux servers using SSH and then SSH to my server from ...
4
votes
2answers
288 views

How to decrypt hostnames of a crypted .ssh/known_hosts with a list of the hostnames?

I try to find a script to decrypt (unhash) the ssh hostnames in the known_hosts file by passing a list of the hostnamses. So, to do exactly the reverse of: ssh-keygen -H -f known_hosts Or also, to ...
1
vote
1answer
54 views

Preventing user from accessing parent folders [duplicate]

I have a user who I only want to be able to access /var/www/ucp/ (his home directory). I have executed the following command on the / directory, the /var/ directory and the /var/www/ directory: chmod ...
1
vote
2answers
45 views

Safe way of letting users upload their public keys

I need to let untrusted users, strangers, upload their id_rsa.pub to my server and onto a given user's authorized_keys (user git in my case). What is the safest way of achieving that, without having ...
1
vote
1answer
115 views

Run a GUI application in background and reconnect later [duplicate]

Is there a way to run a Gui application (X11) in background so that if I disconnect, I can resume the running app again? I am using SmarTTY on windows to connect to remote CentOS. When I run a Gui ...
0
votes
0answers
484 views

CentOS 7 add new user with root privileges

I am reading this tutorial, and trying to create a new user with root privileges and then block root access via ssh in a CentOS 7 server. The problem is that the new user is blocked from doing root ...
3
votes
1answer
187 views

Connecting SSH and Git to gpg-agent

I'm running a YubiKey NEO with the OpenPGP applet to store my GPG keys on the smart card. I've stopped all other SSH and GPG agents manually by removing their startup entries (On elementary OS Luna, ...
2
votes
1answer
88 views

upload and dowload the files from server without giving password

I want to download the file from sever by using cron job, so I need to use scp command without giving password by keyword. How do I do so?
1
vote
0answers
67 views

SSHD_CONFIG keeps corrupting on reverse SSH setup

I have a reverse SSH setup to traverse an impenetrable CGN NAT. It works well, but the SSHD daemon on the client behind the NAT keeps dieing for unknown reasons (fails to start-up). The client ...
0
votes
1answer
137 views

Create A Script That Responds To A Password Prompt

I'm writing a shell script that will respond to a prompt. For example, when I execute a file, the executed file will then prompt the user with this: Please enter the password: Then I want the script ...
2
votes
1answer
51 views

encfs automount and authorized_keys

Here's my problem: I have encfs configured in such a way that on login the subfolder ./private is mounted. However, when I use the workstation remotely via ssh, I don't give my password on login, ...
0
votes
2answers
38 views

How to instablock IP based on root SSH login

I have had this setup before by a friend of mine but it got lost in a reinstall. Basically what happened was, whenever someone would directly SSH to my server as root their IP would get blocked, you ...
0
votes
1answer
25 views

SASL authentication fails when called from crontab

When I run mbsync from the command line it works fine. But if mbsync is run from the crontab, mbsync fails with this error "Error: SASL(-1): generic failure:". My guess is that mbsync's SASL ...
1
vote
1answer
101 views

Keep service running after ssh session ends [duplicate]

i have an ubuntu-server box to which i connect via ssh. now when i start a service (in this case teamcity) i would like to keep it running after the ssh session ends. right now the service stops as ...
-3
votes
1answer
38 views

ssh tunel how to?

ok I have a following situation. machine1 , machine2 and laptop. I need ssh and scp protocol enabled such that I can access to machine1 and do some things there. also i cannot access to machine2 ...
0
votes
0answers
82 views

Linux Mint will not allow traffic from one specific PC on LAN

I was editing /etc/network/interfaces, and then decided to change my settings over VNC instead. This halted my SSH session and also my VNC. I'm not sure if this locked me out or not, but I set cron up ...
0
votes
0answers
39 views

Configure connection from Virtual Machine to a specified server

I know this might sound rather ambiguous, but I don't know how else to put it. I'm working on a Virtual Machine and I use SSH to connect to another virtual machine . Is there anyway that I can ...
0
votes
1answer
75 views

How can I modify client SSH settings?

I am logged in a system as student. How can I modify client SSH settings so that when I write the following command ssh 123.4.5.67 , SSH client authentificates me as another user?
1
vote
2answers
268 views

Have SSH on port 80 or 443 while webserver (nginx) is running on these ports

I have a remote Linux (Debian) machine which I'd like to access from a very restricted network. In fact the only two open ports are port 80 (for HTTP) and 443 (HTTPS). On this machine I have nginx ...
0
votes
2answers
29 views

Is it possible to configure ssh to login with a key if it exists or use a password if it doesn't?

I'm trying to configure sshd for our internal network to accept public key authentication if a user has set up their key or ask for password if the user has not, but not both. So a user should be ...