Feed aggregator

SFTP failing with no error that I can determine at SSH2_MSG_SERVICE_REQUEST sent

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 17:45
I have tried searching both within the Linux Questions threads and through Google search, but my abilities have failed me.

I am getting a "Connection reset by peer" message when trying to connect to an SFTP site from within Linux.

I can connect without issues when I use FileZilla client or WinSCP from Windows, but from the command line the connection fails and I cannot see a reason in the verbose output (see below):
Code: [root@host1 ~]# sftp -vvv user@server.namechanged.com
OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to server.namechanged.com [x.x.x.x] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version CoreFTP-0.3.2
debug1: no match: CoreFTP-0.3.2
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "server.namechanged.com" from file "/root/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-dss-cert-v00@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-md5,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
debug2: kex_parse_kexinit: ssh-rsa
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-sha1
debug2: kex_parse_kexinit: hmac-sha1
debug2: kex_parse_kexinit: none,none
debug2: kex_parse_kexinit: none,none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup hmac-sha1
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug2: mac_setup: setup hmac-sha1
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: kex: diffie-hellman-group14-sha1 need=20 dh_need=20
debug1: kex: diffie-hellman-group14-sha1 need=20 dh_need=20
debug2: bits set: 1021/2048
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Server host key: RSA 44:4d:8a:bf:d6:55:d9:85:81:1a:f7:d3:98:07:c2:c0
debug3: load_hostkeys: loading entries for host "server.namechanged.com" from file "/root/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug3: load_hostkeys: loading entries for host "x.x.x.x" from file "/root/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /root/.ssh/known_hosts:4
debug3: load_hostkeys: loaded 1 keys
debug1: Host 'server.namechanged.com' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:4
debug2: bits set: 1007/2048
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
Connection closed by x.x.x.x
Couldn't read packet: Connection reset by peer

Cursor mouse change over java applications

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 17:16
Hi friends,
I've a question, non very serious, but unlikable :-)
On Ubuntu 14.04 and Gnome Shell 3.12 I'm using a custom xorg mouse cursor named "Chameleon".
All works fine, except if I go over java applications. Here, the cursor change and it becomes the default cursor mouse, and not "Chameleon". Then if I go out of the java desktop applications, the cursor came back to "Chameleon"

Do you know how prevent this behavior?

many thanks!! :-)

Could not grab keyboard - A malicious client may have been eavesdropping your session

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 17:07
I am getting the following error when I try to focus on the Whisker menu in Mint 18 Xfce 64 bit.

Using the command
sudo grep -ral 'malicious client may be eavesdropping' /usr /bin /lib /var

I managed to get those programs which likely generate this error and I got 2 programs. They are:

/usr/lib/libgksu2.so.0.0.2
/usr/lib/openssh/gnome-ssh-askpass

Now, I don't understand what should I do after know it?

In my Window Manager settings I have,

Checked: Automatically give focus to newly created windows.
Checked: Automatically raise windows when they receive focus

Delay is set to 0.

In Window Manager Tweaks I have,

Checked: Activate Focus Stealing Prevention
Checked: Honor standard ICCCM focus hint

I don't understand why, even after activating the focus stealing prevention, I get this error? How to solve it?

Thanks.

Dell XPS 13 9343 random total freeze

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 16:40
Hi,

Ever since I upgraded from slackware64-14.1/current to slackware64-14.2 my laptop freezes after a while (eg. after an hour or two). I then have to force a power off. The keyboard becomes totally unresponsive (eg. CapsLock key light doesn't change) as does the mouse.

Currently I'm running a fully upgraded 14.2 (so, kernel 4.4.29 etc). Bios is version A07. Previously (with no problem) I was on current -- but stopped upgrading when pulse audio was introduced.

I don't know what else changed since that point. Kernel? X11?

This has only happened (so far) when I'm moving the mouse (I think). I left the laptop on/open (display goes to sleep, obviously) for several days and it was OK.

This doesn't depend on which desktop environment / window manager I run (currently xfce).

I can't see anything relevant in any logs.


I can't tell if it's the kernel that has crashed, or just X11. Any ideas how I could narrow down the possibilities?

LXer: Malware Found on New Windows Computers (Not What You Think)

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 16:28
Published at LXer:

An investigative team for a Seattle television station found finding malware on clean computers to be an everyday practice at Office Depot.

Read More...

Script in python... hung window gui.. not in process list

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 15:04
So I have a looping program in python...
Basically...
Opens chromium driver, opens url, logs in, changes url, opens a different page waits 30 minutes, kills chromium driver, then kills any chromium-browse tasks.
then does it again.

Occasionally after leaving the box alone for 6-8 hours Ill find
orphaned or hung window gui not in process list so I can not figure out how to kill them and why this is happening.

I am running bodhi linux.

LXer: How to build your code club on GitHub

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 14:26
Published at LXer:

For anything involving code, programming clubs often turn to GitHub, which has become the standard for open source project hosting for*thousands of projects all over*the world. GitHub organizations*are for creating teams of people working on projects; organizations can have many repositories and smaller teams inside of them. Here's how you get started.read more

Read More...

Bash with Special Characters not copying

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 13:51
Hi guys, need your help on this got a script that read files and put the it into a variable but the path has a special character "#" and therefore not copying.

Any help is greatly appreciated.

Thank you.

Quote:
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do


cp "/usr/dfiles/$line/Tasks/#msgs/*.eml" "/mnt/NAS/Tasks1/$line/"

done < "$1"


chmod +x xx.sh
./xx.sh filename.txt

I had tried this methods below but no joy:

cp "/usr/dfiles/$line/Tasks/?msgs/*.eml" "/mnt/NAS/Tasks1/$line/"
cp "/usr/dfiles/$line/Tasks/\#msgs/*.eml" "/mnt/NAS/Tasks1/$line/"
cp "/usr/dfiles/$line/Tasks/\?msgs/*.eml" "/mnt/NAS/Tasks1/$line/"
cp "/usr/dfiles/$line/Tasks/\*msgs/*.eml" "/mnt/NAS/Tasks1/$line/" Always no such file or directory.

Drive not appear in /dev

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 13:34
Hi,

I have a problem with one new hdd attached to Gentoo box. It's connected to Adaptec 1220sa with another drive. Both are new and 2tb size but only one is visible. Both are shown in kernel logs, one is /dev/sdd, other is /dev/sde but when try fdisk /dev/sde i've got error "Unable to open /dev/sde". If i check /proc/partitions it's there.

Code: test linux-3.6 # cat /proc/partitions
major minor  #blocks  name

  8        0  234431064 sda
  8        1    112640 sda1
  8        2  40163328 sda2
  8        3  194153472 sda3
  8      16 1953514584 sdb
  8      32 1953514584 sdc
  8      48 1953514584 sdd
  8      64 1953514584 sde
  11        0    1048575 sr0
  9        0 1953514496 md0 How to find what i miss?

Thanks.

Cannot get correct screen resolution after installing Debian 8.6

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 12:41
I have the following VGA card in my system :

VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS780L [Radeon 3000]


after installing Debian 8.6 , My screen resolution has been set to 1024 * 768 . but none of any linux installation has given me such kind of problem. Presently I am using ubuntu 16.04 , the screen resolution has been correctly autoconfigured. ( 1366 * 768 ).

I am not getting any option to modify the issue on debian, any idea ?

LXer: Helm: The Kubernetes Package Manager

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 12:35
Published at LXer:

Helm aims to be the default package manager for Kubernetes. In Kubernetes, distributed applications are made of various resources: Deployments, Services, Ingress, Volumes, and so on (as discussed in parts one and two of this series). All in all, Helm tries to simplify complex application deployment on Kubernetes coupled with sharing of applications’ manifests.

Read More...

rclone query

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 12:07
Hi All,

I have recently adopted the use of rclone on our servers to sync/backup to my company's data with their google drive.

This is working well and I've done an initial sync from the offsite backup server to the google drive (it's in a location which has a much better upload speed than the office).

I initially used the copy command but then changed to the sync command, just so that everything was in line with our existing company folder structure.

The only difference I can see in this is that a copy command doesn't delete anything from the destination if it doesn't exist on the source, whereas the sync command does (so that it's an exact replica of the source).

On running sync a second time, it runs through each folder to check its compatibility with the source and it takes ages! (our main folder is about 230 GB in size)

So, my question...

I'm wondering if any of you use rclone and if you use the copy command or the sync command? And my following question would be - what were your reasons?

Thanks,
Simon

Does this hardware works with linux

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 11:31
Hello everyone,

I pretend acquire this hardware:

1-Motherboard Asus Skt1151 - H110M-A/M.2 (https://www.asus.com/pt/Motherboards...cifications/);
2-Intel i5 6400 2.7Ghz QuadCore Skt1151;
or
2-Intel i5 6500 3.2Ghz QuadCore Skt1151;
3-Dimm 8GB DDR4 Kingston CL15 2133Mhz;

Obvious I pretend use penguin because I use Lubuntu 16.04 LTS, and I like simplicity and like save resource hardware to another tasks. My question is if this setup it is totally compatible with Linux (debian, ubuntu, etc).
How I should research about this theme in google?

Thanks

Wine on usb install?

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 11:30
I have an 8G usb stick with Liveslak-14.2 created with the iso2usb.sh script. Partitions are:
Number Start End Size File system Name Flags
1 1049kB 2097kB 1049kB BIOS Boot Partition bios_grub
2 2097kB 107MB 105MB fat32 EFI System Partition boot
3 107MB 8004MB 7897MB ext4 Slackware Linux legacy_boot



I want to add wine, and a bible encyclopedia program to give me access to the latter on the move. The software is a pretty straightforward install; wine compiles and installs in the 'live' homedir (--prefix=/home/live/) but immediately demands gecko. Winetricks falls over in this scenario (No internet for one thing) and wine won't work with the gecko .msi installer, "wrong exec format."
What's the workaround for that? Am I headed for the rocks or should this go together?

LXer: Here's How to Upgrade a Fedora 24 Linux to Fedora 25 via GNOME Software or DNF

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 10:35
Published at LXer:

Fedora 25 arrived on November 22, 2016, as reported right here on Softpedia, and it ships with lots of modern GNU/Linux technologies and the latest open source software releases.

Read More...

Partitioning SSD

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 10:09
I am planning on building a new computer. I am going to install arch linux. I am going to use a samsung 512gb 950 pro SSD. My question is, how should I partition it? What should the partition sizes be?

color-plugin-WARNING 'XRANDR_name'='VNC-0' does not exist

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 09:19
I'm running centos 7 server (command line only) on a vps and I've installed vnc using these commands:
yum -y groupinstall "GNOME Desktop"
yum -y install tigervnc-server
the install goes alright and after setup vnc works and I can connect to this remote desktop on the vps. However when I reboot the vps it doesn't come back up. I've managed to do 'journalctl -f' for another (rescue) console and the log stops at these two lines:
Quote: Nov 24 08:43:10 <hostname> gnome-session[23675]: (gnome-settings-daemon:23824): color-plugin-WARNING **: could not find device: property match 'XRANDR_name'='VNC-0' does not exist
Nov 24 08:43:10 <hostname> gnome-session[23675]: (gnome-settings-daemon:23824): color-plugin-WARNING **: could not find device: property match 'XRANDR_name'='VNC-0' does not exist I don't know whether this is a gnome desktop problem or a vnc problem. After searching google I can't find much on this specific error. Is there a way to resolve this?

LXer: How to extract files from an RPM package on Linux

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 08:42
Published at LXer:

An RPM package contains a set of files, typically compiled software binaries, libraries, and their development source files. These files are packaged in a cpio archive format, and finally wrapped in an RPM file along with any necessary package-specific metadata.

Read More...

lynx command

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 07:20
how to check background process in database by lynx command.

LXer: Open source lab-on-a-board costs $29

LinuxQuestions.org latest posts - Thu, 11/24/2016 - 06:46
Published at LXer:

The tiny, open source “EspoTek Labrador” board combines an oscilloscope, waveform generator, power supply, logic analyzer, and multimeter. We’ve seen several open source projects that have slashed the price and complexity of data acquisition (DAQ), testing and measurement, and other lab gear, such as the Red Pitaya, which is now selling kits under the STEMlab name starting at $199.

Read More...
Syndicate content