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

learn more… | top users | synonyms

1
vote
0answers
9 views

SSH: how can I secure these two scripts used in authorized_keys further?

itunes.sh #!/bin/sh set -f set -- $SSH_ORIGINAL_COMMAND case "$1" in /home/dimm0k/progs/scripts/*) ;; *) exit 1 esac command="${1#/home/dimm0k/progs/scripts/}" shift case "$command" in ...
0
votes
0answers
27 views

Ssh connection closed by IP

My ssh connection to a server intermittently fails and below are the lines I see when I connect ssh using verbose mode, debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: user@acx-box (...
0
votes
0answers
14 views

Get X session id

Can I get the unique session id for each user's xsession if they're logged in remotely through ssh or xrdp or x2go? What command is used to find the session id for each logged in user? Thanks.
2
votes
2answers
25 views

What shell is used to execute an ssh forced command

When you set a forced command against an authorised key, what shell is used to interpret that command and how do you change that shell? If you add an authorised key with a command parameter like ...
0
votes
3answers
29 views

Setup ssh for a linux to solaris session

When I ssh to my my remote server, a solaris machine running SunOS 5.9 with C-shell as default login shell I have the following issues: TERM variable is not defined: I need to manually set this ...
0
votes
2answers
32 views

SSH Tunneling to VNCServer

I have a dedicated server. There's a VNC Server and I can connect to VNC Server with a VNC Client with port 5901 so it takes me to display :1 when I connect there with a VNC Client. I've read pretty ...
1
vote
0answers
15 views

Issues with nmap scan using ssh socks proxy with proxychains

I have a socks proxy made available to a remote computer, using ssh: ssh -D 127.0.0.1:9999 remoteuser@remotemachine I've adjusted the /etc/proxychains.conf: quiet_mode socks4 127.0.0.1 9999 After ...
2
votes
0answers
13 views

Attempt local SSH Keys before Agent

I have a key in a KeePass database made available using KeeAgent. I also have a key in the ~/.ssh folder. When I attempt to SSH, it tries the key from KeePass first (even if I have an IdentityFile ...
1
vote
2answers
54 views

Can't get Qemu output through SSH

Short Version I want to run Qemu on a remote machine using ssh. With this command I am able to see some boot messages but I can't manage to get vm the login prompt in my local terminal. qemu-system-...
0
votes
2answers
56 views

Serve Internet to remote machine via SSH? [on hold]

This question is asked from few times but my setup is little different from other setup. I have my machine sitting in closed network with no internet and I have sudo access to that machine. But I ...
0
votes
1answer
19 views

Checking if software is installed in SSH session

I am trying to check whether a certain package is installed on remote machine in bash script. If I execute the following statement on the machine itself the result is 1 (installed) in file check.txt, ...
0
votes
0answers
16 views

Transmitting a content of a text file from one server to another? [on hold]

What's the best and easiest way to transmit the content of a text of file or a file itself of the size around 100Kb from one server to another programmatically? That is, using a programming language ...
1
vote
0answers
28 views

Default Environment Variables not Set when Issuing SSH Command

we have two serers (svr1 & svr2) that are using password-less authentication and we're trying to run the example script below: contents of test.sh #!/bin/sh echo "hello ${APP_TOP} exit" test.sh ...
1
vote
1answer
29 views

View script output over ssh in real time

I am trying to run a local script on a remote machine with ssh. Let's say this is the python script (printdelay.py) which I am trying to run: from time import sleep print("The first line") sleep(...
1
vote
2answers
61 views

What happens if a users default shell is not installed?

I work as a sysadmin in a large company and have to maintain several windows and Linux (Ubuntu 16.04) VMs. Since I want to use zsh instead of bash on the Linux VMs, I have to change my default shell. ...
1
vote
1answer
30 views

Proper way to set up rsnapshot over ssh

I have two Debian 8 servers: Server A: at home, lots of storage Server B: vps at commercial host, running web and mail services Both are pet projects, not business stuff. Server B runs rsnapshot ...
1
vote
0answers
43 views

Can't log into localhost via SSH, but authentication succeeded

When I try to use ssh to login locally, it closes the connection. $ ssh -vvv Chloe@localhost ... debug2: we sent a publickey packet, wait for reply debug1: Authentication succeeded (publickey). ...
0
votes
0answers
4 views

Screen detatch other session *from within same session*?

I have a computer set up with Byobu+Screen, in a way that causes screen to automatically attach at login, and ctrl-a d closes my entire SSH session. I had a terminal instance go unresponsive, and now ...
2
votes
0answers
13 views

Intermingled input when using local gpg-agent from remote site

I'm starting a local gpg-agent on my Mac, with the extra-socket option. Then I connect to a remote site using SSH, forwarding the remote S.gpg-agent socket to the local S.gpg-agent.extra socket. This ...
1
vote
4answers
50 views

ssh client asks for password by default; how to configure it to use key?

I have both: password and pubkey authentication available on my server. I can log from client with key specified explicitely: ssh user@host -i id_rsa When I don't specify keyfile, it asks for ...
1
vote
3answers
47 views

/sbin/nologin and /bin/false are ignored in /etc/passwd as a user shell

I have a following entry in /etc/passwd file: test:x:1002:1000::/home/test:/bin/bash When I change it to test:x:1002:1000::/home/test:/bin/false or test:x:1002:1000::/home/test:/sbin/nologin, then I'...
0
votes
0answers
26 views

SSH SendEnv and command=“script” overwrites EnvVariable

I've got the following problem: I try to push/set a EnvVariable via ssh -o SendEnv=APITOKEN host on the remote host is the following setup: this line in /etc/ssh/sshd_config: AcceptEnv LANG LC_* ...
0
votes
0answers
34 views

SSH connection refused only from a specific PC

I'm connecting to my server via ssh but I encounter a really weird problem. I can connect to my server with local ip (192.168.** .** ) I can not connect to my server via its public ip address on my ...
0
votes
3answers
36 views

Notification that remote process completed (email excluded)

I'm connecting using OpenSSH to a Linux server where I have a tmux session where I do certain compiling work which takes a long time. Now I would like to be get right away a notification on my Linux ...
6
votes
5answers
706 views

Is it bad to port forward port 443 for ssh?

I am a student and I keep most of my files on my home computer. Unfortunately, i can't use ssh or scp from my laptop which I use at school because of the firewall. I was thinking about trying to use ...
0
votes
2answers
51 views

Can we use ssh to connect to a web server and then send a http request and receive a http response?

telnet www.ietf.org 80 GET /rfc.html HTTP/1.1 Host: www.ietf.org This sequence of commands starts up a telnet (i.e., TCP) connection to port 80 on IETF’s Web server, www.ietf.org. Then comes the GET ...
0
votes
2answers
44 views

Connection refused when user's home directory is changed

I am setting up a user account to log into the server through SSH. The user name is 'sam' sudo useradd sam This created a /home/sam directory. I created a .ssh directory and wrote a public key to ...
-2
votes
0answers
22 views

connecting many servers from local machine [closed]

I have multiple servers running on Linux - CentOS that all of them contain my public and private key so I can connect to them from my terminal without password, what I want a bash script contain ...
0
votes
1answer
59 views

Only allow SSH incoming and outgoing

I am trying to only allow SSH incoming and outgoings on my firewall, but the problem is that FTP can also be used even though I DROP at the end of the script # Incoming SSH $iptables -A INPUT -p tcp -...
0
votes
1answer
20 views

Ubuntu SSH alias for remote subfolder

I'm trying to make it ease for me by creating alias for ssh connection to my server. So I created alias in the ~/.bashrc as follows: alias aliasname='ssh login@ip -p 59184' But I want to make ...
0
votes
2answers
41 views

How update title bar on terminator?

I have installed Terminator in my linux Mint on xfce. When I open it, the title bar is correct: but, when I log into a remote server via ssh, the title bar doesn't update: How can I fix the title? ...
1
vote
5answers
117 views
+50

making an automate reverse SSH connection at boot

I have a PC behind a NAT which makes a reverse SSH connection to my Digitalocean VPC. I utilise this reversed SSH connection from home to login to my office PC (I am authorised to do so) and copy ...
0
votes
0answers
13 views

ssh to the same host (tmux session) / load balancing server

I am ssh:ing to ssh-share.myorg.com, which then directs me to a host (host1.myorg.com) with low load. At the host I normally starts tmux etc. When I later reconnects, I would like to pick up my tmux ...
1
vote
1answer
32 views

log or restrict the source user of ssh login

Is it possible to log and/or restrict the source user of an ssh login? For example: user1@server1 logs into server2 as user2 . also, user3@server1 logs into server2 as user2 . By "source user" I ...
3
votes
2answers
23 views

How does 'ssh user2@host2:user1@host1' work?

In a setup that I have inherited, using the command ssh user2@host2:user1@host1, I can connect to user2@host2 through user1@host1 but I don't understand how it works (where is this ssh behaviour ...
2
votes
1answer
65 views

Why is my SSH connection being closed immediately after pubkey auth succeeds?

I've two windows machine and trying to SSH using CYGWIN. It works fine when password prompted. However, when I generated the private/public pair, looks like authentication succeeded, but got the ...
0
votes
0answers
20 views

connection refused from server to local host

I have an R script on a remote server. The script needs my local display in order to generate plots. me@local$ ssh -Y me@remote_ip me@remote$ echo $DISPLAY localhost:52.0 $ Rscript myscript.R ...
0
votes
0answers
6 views

Cannot redirect to a webpage after ssh tunnel creation in cgi context

I have this script named test.cgi under my /cgi-bin directory: #!/bin/bash /usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -M -S /tmp/my-ctrl-socket -fnTN -L 172.30.26.14:...
0
votes
1answer
21 views

sshpass failing with exit code 6

My setup is the following: node A is where I start node B is the gateway machine node C is the destination. From Ato B I have setup SSH public key authentication but from B to C I am not allowed to. ...
0
votes
1answer
19 views

method that allows remote SSH server to backup files from a webhost given only SFTP credentials?

I do not know what to search on Google to actually lead me to the right answer. When I tried it says rsync or scp but I do not think this will solve my problem because for obvious reason SFTP-only ...
0
votes
0answers
14 views

SSH Pseudo-Terminal without option

I'm currently writing my bachelor thesis and have to use OpenTOSCA. We have a NodeType that connects to a Ubuntu 14.04 VM via SSH. I want to start a program in the background, which is not supplied as ...
0
votes
2answers
47 views

does netstat established mean that someone is ssh'd into my machine

I ran the command netstat -lat and I got this output... ... tcp 0 0 my.machine.ip.add:ssh 116.31.116.48:43270 ESTABLISHED tcp 0 0 my.machine.ip.add:ssh my....
1
vote
2answers
62 views

Unable to connect to SSH server from MacOS

On a MacOSSierra I'm running VirtulBox with Ubuntu 16.4 Server (CLI) I'm trying to establish a SSH connection from Mac to the VM (they are both on the same machine) Mac Terminal: usermac-MacBook-Pro:...
2
votes
2answers
28 views

Multiple commands with quotations after SSHing

I have a server I have to ssh into with many commands which feature the use of variable assignment and consequently a lot of quotation marks. If we consider the script: ssh user@host "kinit -k -t /...
-1
votes
0answers
11 views

I got a .ppk file and IP address from my coleague to hook, but server asks me for passphrase [duplicate]

I need to hook on an Amazon AWS server for Setting up Wordpress. I can't SSH into it. I have the .ppk file and the IP address. My colleague says I can hook onto it, but I am still getting the ...
1
vote
1answer
26 views

SSH Password prompt for a password after ssh keys are configured

Although I placed my public key on the remote machine yet I am still getting the ssh password prompt, here's my ssh -vv output (just the last rows) that might help: debug2: service_accept: ssh-...
0
votes
1answer
22 views

Automate list files with ssh from Ubuntu to Windows(Openssh)

I am writing some automation API in C working with remote file system via SSH. The host is running Ubuntu-Linux and one of the target machine is running Windows 7 with OpenSSH installed. The ...
3
votes
1answer
199 views

How to add a phrase-less key to ssh agent?

On running the command ssh-add mykey.ppk it asks for passphrase: Enter passphrase for mykey.ppk: But I can see that the key does not have any passphrase and is not encrypted $ head mykey.ppk ...
0
votes
1answer
29 views

Ctrl+z and fg with SSH - why doesn't it work?

Sorry if this question is stupid/obvious, I'm rather new to Linux. I'm connecting to a VPS using SSH client on Android (JuiceSSH). I run a program, and then send it to background using Ctrl+Z. Then, ...
0
votes
1answer
38 views

Can a server signal a client to run a script WITHOUT SSH reverse tunneling?

I'm trying to set up a lightweight, custom filesync system for myself. I'd like the server to watch for changes to a given folder (with inotify -m), and when it detects any, to propagate them to ...