All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

paramiko authentication failure

I'm trying to ssh into an IPv6 device. It doesn't have a password. When I do it manually there are no issues. However when I do with with my python script using paramiko I get an authentication error ...
0
votes
2answers
59 views

check ssh-key multiple servers [closed]

I need to make a script to check authentication of an user with ssh-key on multiple Redhat servers, approximately 980 servers. User can edit script for userID and private ssh-key location. Script ...
1
vote
0answers
18 views

Remote computer management [duplicate]

I have my PC with Ubuntu 19.04 on it, and I have "server" (it's old laptop with Debian 9 installed). However, getting physical access to laptop is complicated task, because it has some problems with ...
0
votes
1answer
22 views

Escaping quotes and apostrophes through ssh command execution

I would like to execute the following command through ssh: echo "trap '/tmp/test &' 2 9" >> /tmp/output.txt I am trying to do as follows: ssh 127.0.0.1 -T "echo "trap '/tmp/test &' 2 ...
0
votes
0answers
33 views

Why is my PATH so small when opening SSH session through python subprocess?

I'm currently working on a project that requires me to use a python subprocess to execute "i2cset" on a Raspberry Pi2 through SSH but my code keeps telling me that my Raspberry Pi can't find "i2cset". ...
2
votes
1answer
118 views

How can I write directly to a Solaris FIFO pipe over ssh?

I have a Solaris server running a process that has its input and output redirected into FIFO pipes (fifo_in, fifo_out). How can I connect to these two pipes over ssh? I would like to be able to ...
2
votes
2answers
2k views

run a local python script remotely within an environment

I would like to run a local python script remotely but activate the proper environment within the remote machine first. For example, if running locally I would do: source activate myenv python ...
0
votes
0answers
160 views

remote process run through ssh gets killed if UI is closed

I have written a script which essentially does 2 things: Runs a UI for listening to the actual program running on the server remotely run the program on the server All goes well, the UI starts, then ...
1
vote
1answer
416 views

How to escape special character in exec_command in python

I am trying to connect from one server to another server using paramiko. Here is the code: import paramiko ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh....
1
vote
0answers
818 views

Passwordless ssh still asks for password when running as subprocess

I had setup passwordless ssh (keygen) to access my remote workspace from my personal laptop. On the remote server, I do use an account with a password to connect. Setting up public/private key ...
0
votes
1answer
3k views

Using string with whitespace in the subprocess.call function in python

I am trying to use ssh command in the subprocess.call function of Python 2.6.8 on Unix environment to call a remote script, and I need to provide a string parameter (with whitespaces) to the remote ...
3
votes
3answers
6k views

How to ssh forwarding with AllowTcpForwarding set to no?

There is some development I need to do on some remote box. Fortunately, I have shell access, but I need to go through a gateway that has AllowTcpForwarding set to false. I took a peak at the docs and ...
2
votes
1answer
70 views

How do I change my path when executing a command following a terminal ssh to another machine

For the following please consider that I'm new to the Linux file system and have little understanding here. When I log onto my cluster I do so on a default machine. The admin have setup several ...
2
votes
1answer
287 views

error while connecting remote server using ssh

I am trying to access remote server: Here is my ssh command given below- bitech@hdpedge01:~/.ssh$ ssh techniker@151.252.41.105 -i ~/.ssh/id_rsa -v I am getting permission denied error: OpenSSH_6....
3
votes
1answer
2k 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
1answer
176 views

Serial/SSH Communication

I have a Linux module. I need to receive messages via SSH and transmit them using serial and vice versa. Basically I want a pipe or a gateway between a SSH and Serial device. Can anyone provide ...
3
votes
0answers
3k views

libGL error: No matching fbConfigs or visuals found over ssh

I am trying to run tflearn (debian 8) When I run that code locally , it runs fine (its shows the windows). But when I do ssh , I get errors. Note that I am able to open other gui applications over ...
0
votes
1answer
748 views

I SSH into a linux server via putty, and i have a linked drive on my windows machine. How can I access files on other drives?

I am using a linux server to run scripts and manage a database. I get to this using a SSH through PuTTY. On my windows machine there is a mapped drive to a directory (/mapped_drive/) on this server (X:...
2
votes
1answer
356 views

Permission denied error without ssh connection

I have an Ubuntu 12.04 server which runs a python application. The application is started manually in tmux or automatically when the server starts. Application processes http requests from android ...
1
vote
0answers
124 views

Can I change owner of a tunnel after creating it?

I've been trying to finagle pytun to do my bidding in creating persistent ssh tunnels, but I very much do not want these to be owned by root and unless I modify the python package myself (which as a ...
0
votes
2answers
3k views

Script for ssh automatic login to a specific port

So currently, the "traditional" way to connect through SSH is the following one: ssh USERNAME@HOST -p PORT I would like to create a script in which I will include all the appropriate information (...
1
vote
3answers
8k views

Copy and get files from one machine which is connected via ssh to another one

I read a lot of answers to questions very similar to this one, but I couldn't find something that really fits my problem. Here's the situation. I have a machine whose address is "machine1@address", ...
0
votes
1answer
466 views

Why are the bytes I'm receiving not the bytes I sent?

I've been working my way through a security games site, trying to automate what I'm doing using pwntools. I've come across a problem somewhere in my process, however. When I try to run the vulnerable ...
0
votes
0answers
575 views

Capture user input in SSH

Say you are at work, you ssh to your home PC and opened a python game.py. No VNC. Is it possible to press down and up, space, etc. inside the window of the game? No need to see the actual game ...
1
vote
1answer
673 views

Why won't MOTD display output from a Python script it calls outside of /etc/update-motd.d/ unless it's in this directory?

The Situation We're running a headless Ubuntu 14.10 Server to fulfill various needs and tests. I was experimenting with changing the MOTD for SSH sessions via /etc/update-motd.d/ so as to display ...
1
vote
1answer
5k views

Set up SSH tunnel on existing connection from script

I want to establish an SSH tunnel on an existing connection. The tricky part is doing it from a script (a custom shell I need to allow users only some specific things, like setting up this tunnel). ...
16
votes
7answers
16k views

Why does my Python background process end when SSH session is terminated?

I have a bash script that starts up a python3 script (let's call it startup.sh), with the key line: nohup python3 -u <script> & When I ssh in directly and call this script, the python ...
2
votes
4answers
1k views

Keep running program requiring X server after logging off of ssh session

I have a python script that periodically generates a png image, and puts it on a server that I can access through a browser. The image displays the progress of a job I am running on the server. I'm ...
3
votes
0answers
1k views

“Operation not supported” for setfacl inside a python script [closed]

I've programmed a script using python which logs in as root on the host machine and executes some commands. Therefore it uses ssh. I want to setup acl. If I do following commands in the command line, ...
8
votes
2answers
971 views

View Script Over SSH?

A friend, using a remote machine, SSHed to my machine and ran the following python script: while (1): ....print "hello world" (this script simply prints 'hello world' continuously). I am now ...